From 28b5faab0c37dcf2692653d1f0d8ee6eb14ce4e6 Mon Sep 17 00:00:00 2001 From: RikkaW Date: Sat, 13 Nov 2021 00:08:36 +0800 Subject: [PATCH] Visual changes --- .../magisk/ui/module/ModuleViewModel.kt | 3 + .../color_card_background_color_selector.xml | 5 ++ app/src/main/res/layout/item_module_md2.xml | 62 ++++++++++++------- app/src/main/res/values/themes_md2.xml | 4 +- 4 files changed, 51 insertions(+), 23 deletions(-) create mode 100644 app/src/main/res/color/color_card_background_color_selector.xml diff --git a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt index cca94a334..2e1c6ac3a 100644 --- a/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt +++ b/app/src/main/java/com/topjohnwu/magisk/ui/module/ModuleViewModel.kt @@ -25,6 +25,9 @@ import me.tatarka.bindingcollectionadapter2.collections.MergeObservableList class ModuleViewModel : BaseViewModel(), Queryable { + val bottomBarBarrierIds = + intArrayOf(R.id.module_info, R.id.module_remove) + override val queryDelay = 1000L @get:Bindable diff --git a/app/src/main/res/color/color_card_background_color_selector.xml b/app/src/main/res/color/color_card_background_color_selector.xml new file mode 100644 index 000000000..10805d34e --- /dev/null +++ b/app/src/main/res/color/color_card_background_color_selector.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/main/res/layout/item_module_md2.xml b/app/src/main/res/layout/item_module_md2.xml index 7d27e1901..1bf6f0923 100644 --- a/app/src/main/res/layout/item_module_md2.xml +++ b/app/src/main/res/layout/item_module_md2.xml @@ -25,11 +25,12 @@ @@ -43,6 +44,7 @@ android:adjustViewBounds="true" android:alpha=".05" android:background="@null" + android:duplicateParentState="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintTop_toTopOf="parent" @@ -52,7 +54,8 @@ + android:animateLayoutChanges="true" + android:duplicateParentState="true"> + tools:text="@tools:sample/lorem" /> - - @@ -166,6 +159,33 @@ tools:icon="@drawable/ic_delete_md2" tools:text="Remove" /> + + + + diff --git a/app/src/main/res/values/themes_md2.xml b/app/src/main/res/values/themes_md2.xml index a8b856261..e2451510c 100644 --- a/app/src/main/res/values/themes_md2.xml +++ b/app/src/main/res/values/themes_md2.xml @@ -48,7 +48,7 @@ #3E78AF #803E78AF #F9F9F9 - #E8E8E8 + #EEEEEE ?colorSurface #F9F9F9 #D9E6E6E6 @@ -128,4 +128,4 @@ - \ No newline at end of file +