From 7067f147fd6439f9dd51131794e3e7729a280239 Mon Sep 17 00:00:00 2001 From: tehcneko <7764726+tehcneko@users.noreply.github.com> Date: Sun, 14 Feb 2021 14:32:45 +0800 Subject: [PATCH] [app] Fix layouts --- app/src/main/res/layout/activity_main.xml | 476 ++++++++++--------- app/src/main/res/layout/status_installer.xml | 4 +- 2 files changed, 244 insertions(+), 236 deletions(-) diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 46c7b642..c0eef02e 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -49,288 +49,296 @@ android:visibility="gone" tools:ignore="ContentDescription" /> - + tools:ignore="MissingPrefix"> - + android:scrollbars="none"> - + android:layout_height="match_parent" + android:animateLayoutChanges="true" + android:orientation="vertical" + tools:context=".ui.activity.MainActivity"> - - - - - - - - + android:layout_marginEnd="16dp" + android:layout_marginBottom="10dp" + android:clipChildren="false" + android:clipToPadding="false"> + android:layout_marginStart="16dp" + android:contentDescription="@string/app_name" /> - - + android:layout_centerVertical="true" + android:layout_marginStart="10dp" + android:layout_toEndOf="@id/app_icon" + android:contentDescription="@string/app_name" + android:text="@string/app_name" + android:textAppearance="@style/TextAppearance.AppCompat.Title" + android:textSize="20sp" + tools:ignore="RelativeOverlap" /> - - - - + android:layout_marginHorizontal="16dp" + android:clickable="true" + android:focusable="true" + android:foreground="?attr/selectableItemBackground" + app:cardBackgroundColor="#4CAF50" + app:cardCornerRadius="8dp" + app:cardElevation="4dp" + app:cardPreventCornerOverlap="false"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + android:contentDescription="@string/Logs" + app:srcCompat="@drawable/ic_assignment" /> + - - - - - - - + android:layout_gravity="center_horizontal" + android:layout_marginHorizontal="16dp" + android:layout_marginTop="10dp" + android:background="@drawable/item_background_round_nopadding" + android:clickable="true" + android:focusable="true" + android:orientation="horizontal" + android:padding="18dp"> + android:contentDescription="@string/Settings" + app:srcCompat="@drawable/ic_settings" /> + + + + + - - + android:layout_marginStart="25dp" + android:text="@string/About" + android:textAppearance="@style/TextAppearance.AppCompat.Medium" /> + - - - - - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/app/src/main/res/layout/status_installer.xml b/app/src/main/res/layout/status_installer.xml index 818b4019..0ab2e2f9 100644 --- a/app/src/main/res/layout/status_installer.xml +++ b/app/src/main/res/layout/status_installer.xml @@ -19,7 +19,7 @@ ~ Copyright (C) 2021 LSPosed Contributors --> - @@ -114,4 +114,4 @@ android:visibility="gone" /> - \ No newline at end of file + \ No newline at end of file