From 3a18e68751d0c1e8088fc5b8de33f2282e3e3f04 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Fri, 4 Oct 2019 19:57:27 +0200 Subject: [PATCH] Updated arrangement of manager/magisk sections --- app/src/main/res/layout/fragment_home_md2.xml | 61 ++++++++++++------- .../res/layout/swicher_caption_variant.xml | 1 + 2 files changed, 40 insertions(+), 22 deletions(-) diff --git a/app/src/main/res/layout/fragment_home_md2.xml b/app/src/main/res/layout/fragment_home_md2.xml index ec056d4b6..db6eaf9a8 100644 --- a/app/src/main/res/layout/fragment_home_md2.xml +++ b/app/src/main/res/layout/fragment_home_md2.xml @@ -35,6 +35,8 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:animateLayoutChanges="true" + android:paddingStart="@dimen/l1" + android:paddingEnd="@dimen/l1" app:layout_constraintEnd_toStartOf="@+id/home_manager_wrapper" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent"> @@ -44,8 +46,9 @@ style="?styleIconPrimary" isEnabled="@{viewModel.stateMagisk != MagiskState.LOADING}" onSelectClick="@{() -> viewModel.onDeletePressed()}" - onSelectReset="@{10000L}" + onSelectReset="@{7000L}" android:padding="@dimen/l_25" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:srcCompat="@drawable/ic_magisk_delete" @@ -55,21 +58,19 @@ android:id="@+id/home_magisk_title" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/l1" + android:layout_marginTop="@dimen/l1" + android:gravity="center" android:text="Magisk" android:textAppearance="?appearanceTextTitleNormal" - app:layout_constraintBottom_toTopOf="@+id/home_magisk_status" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toEndOf="@+id/home_magisk_icon" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintVertical_chainStyle="packed" /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/home_magisk_icon" /> @@ -87,8 +88,9 @@ + + @@ -124,6 +140,7 @@ android:id="@+id/home_manager_icon" style="?styleIconPrimary" android:padding="@dimen/l_50" + app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" app:srcCompat="@drawable/ic_manager" /> @@ -132,38 +149,37 @@ android:id="@+id/home_manager_title" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_marginStart="@dimen/l1" + android:layout_marginTop="@dimen/l1" + android:gravity="center" android:text="Manager" android:textAppearance="?appearanceTextTitleNormal" - app:layout_constraintBottom_toTopOf="@+id/home_manager_status" app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toEndOf="@+id/home_manager_icon" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintVertical_chainStyle="packed" /> + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@+id/home_manager_icon" /> \ No newline at end of file