From ffa85a616ac8a2884d0e843ccd60ddfe7ca08dbf Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 11 Feb 2020 19:46:29 -0800 Subject: [PATCH] Update home screen layout (yet again) --- app/src/main/res/layout/fragment_home_md2.xml | 18 +- .../main/res/layout/include_home_device.xml | 369 +++++++++-------- .../main/res/layout/include_home_magisk.xml | 370 ++++++++---------- .../main/res/layout/include_home_manager.xml | 334 ++++++++-------- 4 files changed, 512 insertions(+), 579 deletions(-) diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 92267b060..e5e876e34 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -40,7 +40,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - - - - + android:layout_height="wrap_content"> - - - - - - - - - + android:paddingBottom="@dimen/l1" + tools:layout_gravity="center"> - + + + + + android:text="@string/reboot" + android:textAllCaps="false" + app:icon="@drawable/ic_restart" + app:layout_constraintBottom_toBottomOf="@+id/home_device_title" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="@+id/home_device_title" /> - + + + + + android:layout_height="wrap_content" + android:orientation="horizontal"> - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + diff --git a/app/src/main/res/layout/include_home_magisk.xml b/app/src/main/res/layout/include_home_magisk.xml index 6744d48be..173ae9022 100644 --- a/app/src/main/res/layout/include_home_magisk.xml +++ b/app/src/main/res/layout/include_home_magisk.xml @@ -17,230 +17,192 @@ - + android:layout_height="wrap_content"> - - - - - - - - - - - - - - - + android:paddingBottom="@dimen/l1" + tools:layout_gravity="center"> - + + + + + + + app:layout_constraintBottom_toBottomOf="@+id/home_magisk_title" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="@+id/home_magisk_title"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + android:layout_height="wrap_content" + android:onClick="@{() -> viewModel.onMagiskPressed()}" + android:text="@string/update" + android:textAllCaps="false" + app:icon="@drawable/ic_update_md2" /> - + - + - + + + + + + + + + android:layout_height="wrap_content"> - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/include_home_manager.xml b/app/src/main/res/layout/include_home_manager.xml index e69d692cd..5326926ba 100644 --- a/app/src/main/res/layout/include_home_manager.xml +++ b/app/src/main/res/layout/include_home_manager.xml @@ -17,225 +17,197 @@ - + android:layout_height="wrap_content"> - - - - - - - - - - - - - - - + android:paddingBottom="@dimen/l1" + tools:layout_gravity="center"> - + + + + + app:layout_constraintBottom_toBottomOf="@+id/home_manager_title" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="@+id/home_manager_title"> - + android:layout_height="wrap_content" + android:onClick="@{() -> viewModel.onManagerPressed()}" + android:text="@string/update" + android:textAllCaps="false" + app:icon="@drawable/ic_update_md2" /> - + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - +