From 47d1e3b817a6f029f8e1522b972fa6d1d86e08ee Mon Sep 17 00:00:00 2001
From: Super12138 <70494801+Super12138@users.noreply.github.com>
Date: Sun, 14 Jan 2024 14:21:29 +0800
Subject: [PATCH] Add new layout for small screen
---
.../main/res/layout-land/activity_main.xml | 6 ++-
.../main/res/layout-small/activity_main.xml | 50 +++++++++++++++++++
app/src/main/res/layout/activity_main.xml | 6 ++-
3 files changed, 58 insertions(+), 4 deletions(-)
create mode 100644 app/src/main/res/layout-small/activity_main.xml
diff --git a/app/src/main/res/layout-land/activity_main.xml b/app/src/main/res/layout-land/activity_main.xml
index dd268e4..eb64132 100644
--- a/app/src/main/res/layout-land/activity_main.xml
+++ b/app/src/main/res/layout-land/activity_main.xml
@@ -34,13 +34,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="3"
- android:minHeight="160dp" />
+ android:minHeight="160dp"
+ tools:layout="@layout/fragment_progress" />
+ android:layout_weight="2"
+ tools:layout="@layout/fragment_todo" />
\ No newline at end of file
diff --git a/app/src/main/res/layout-small/activity_main.xml b/app/src/main/res/layout-small/activity_main.xml
new file mode 100644
index 0000000..7b1bf4e
--- /dev/null
+++ b/app/src/main/res/layout-small/activity_main.xml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index 4cbc95a..ce81782 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -34,13 +34,15 @@
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="2"
- android:minHeight="160dp" />
+ android:minHeight="160dp"
+ tools:layout="@layout/fragment_progress" />
+ android:layout_weight="3"
+ tools:layout="@layout/fragment_todo" />
\ No newline at end of file