diff --git a/app/src/main/res/drawable/bg_card.xml b/app/src/main/res/drawable/bg_card.xml new file mode 100644 index 000000000..57de59736 --- /dev/null +++ b/app/src/main/res/drawable/bg_card.xml @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 014ffcbd5..77b29bc50 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -38,216 +38,222 @@ android:layout_height="wrap_content" android:paddingTop="@dimen/l1"> - - - - - - - - - - + app:layout_constraintTop_toTopOf="parent"> - + + + + + + + + + android:layout_marginTop="@dimen/l1" + android:animateLayoutChanges="true" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/home_magisk_version"> - + - + - + - + - + + - + app:layout_constraintStart_toEndOf="@+id/home_magisk_wrapper" + app:layout_constraintTop_toTopOf="parent"> - + - - - - - - - + android:layout_marginTop="@dimen/l1" + android:gravity="center" + android:text="@{viewModel.stateHideManagerName}" + android:textAppearance="?appearanceTextTitleNormal" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/home_manager_icon" + tools:text="@string/manager" /> - + app:layout_constraintEnd_toEndOf="@+id/home_manager_title" + app:layout_constraintStart_toStartOf="@+id/home_manager_title" + app:layout_constraintTop_toBottomOf="@+id/home_manager_title" /> - + + + + + + + + + + + + + - - - diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml index cb82971c6..6c1bd516c 100644 --- a/app/src/main/res/values/attrs.xml +++ b/app/src/main/res/values/attrs.xml @@ -17,6 +17,7 @@ + diff --git a/app/src/main/res/values/styles_md2.xml b/app/src/main/res/values/styles_md2.xml index f0e095ff0..5c2455c3f 100644 --- a/app/src/main/res/values/styles_md2.xml +++ b/app/src/main/res/values/styles_md2.xml @@ -30,6 +30,7 @@ @style/WidgetFoundation.Toolbar @style/WidgetFoundation.Card + @style/WidgetFoundation.Card.Variant @style/WidgetFoundation.Card.Elevated @style/WidgetFoundation.Card.OnPrimary diff --git a/app/src/main/res/values/styles_md2_impl.xml b/app/src/main/res/values/styles_md2_impl.xml index 2de494ff7..717fa55e1 100644 --- a/app/src/main/res/values/styles_md2_impl.xml +++ b/app/src/main/res/values/styles_md2_impl.xml @@ -30,6 +30,11 @@ variant. Make sure to use style referenced by attribute defined it attrs.xml. true +