diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index 37b971a38..5ec0fc54a 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -289,59 +289,45 @@ + app:layout_constraintWidth_max="400dp"> - - - + app:srcCompat="@drawable/ic_magisk_delete" /> - + app:layout_constraintTop_toBottomOf="@+id/home_magisk_title" + tools:text="@string/up_to_date_md2" /> - + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintWidth_max="150dp"> - + + app:layout_constraintBottom_toBottomOf="@+id/home_magisk_wrapper" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_chainStyle="packed" + app:layout_constraintStart_toEndOf="@+id/home_magisk_wrapper" + app:layout_constraintTop_toTopOf="@+id/home_magisk_wrapper" + app:layout_constraintVertical_bias=".5"> - - + app:backgroundTint="?colorSurface" + app:elevation="0dp" + app:fabSize="mini" + app:srcCompat="@drawable/ic_install" + app:tint="?colorPrimary" /> @@ -530,31 +527,29 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/l1" android:layout_marginTop="@dimen/l1" - android:layout_marginEnd="@dimen/l1" - android:maxWidth="200dp" - android:onClick="@{() -> viewModel.toggle(viewModel.stateManagerExpanded)}" + android:layout_marginEnd="@dimen/l_50" app:layout_constrainedWidth="true" - app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintEnd_toStartOf="@+id/home_manager_buttons" app:layout_constraintHorizontal_chainStyle="packed" - app:layout_constraintStart_toEndOf="@+id/home_magisk_wrapper" - app:layout_constraintTop_toBottomOf="@+id/home_device_wrapper" - app:layout_constraintWidth_max="200dp"> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/home_magisk_wrapper" + app:layout_constraintWidth_max="400dp"> - - + app:layout_constraintTop_toBottomOf="@+id/home_manager_title" + tools:text="@string/obsolete_md2" /> - + app:layout_constraintTop_toBottomOf="@+id/home_manager_status" + tools:text="10.0.0 > 10.0.1" /> + app:layout_constrainedWidth="true" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintWidth_max="150dp"> - + + android:layout_marginEnd="@dimen/l_50" + app:layout_constraintBottom_toBottomOf="@+id/home_manager_wrapper" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_chainStyle="packed" + app:layout_constraintStart_toEndOf="@+id/home_manager_wrapper" + app:layout_constraintTop_toTopOf="@+id/home_manager_wrapper" + app:layout_constraintVertical_bias=".5"> - + app:backgroundTint="?colorPrimary" + app:elevation="0dp" + app:fabSize="mini" + app:srcCompat="@drawable/ic_update_md2" + app:tint="?colorOnPrimary" /> - @@ -797,6 +802,17 @@ + +