Android: Fix padding if settings UI is too small

This commit is contained in:
Gamer64 2024-08-20 17:34:54 +02:00
parent ca0a94adb1
commit 786713982b
2 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,7 @@
android:focusable="true"
android:gravity="center_vertical"
android:minHeight="72dp"
android:padding="16dp">
android:padding="@dimen/spacing_large">
<LinearLayout
android:layout_width="match_parent"
@ -60,6 +60,7 @@
android:textAlignment="viewStart"
android:textStyle="bold"
android:textSize="13sp"
android:visibility="gone"
tools:text="1x" />
</LinearLayout>

View File

@ -8,7 +8,9 @@
android:clickable="true"
android:focusable="true"
android:minHeight="72dp"
android:padding="16dp">
android:paddingVertical="@dimen/spacing_large"
android:paddingStart="@dimen/spacing_large"
android:paddingEnd="24dp">
<com.google.android.material.materialswitch.MaterialSwitch
android:id="@+id/switch_widget"
@ -22,7 +24,7 @@
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerVertical="true"
android:layout_marginEnd="24dp"
android:layout_marginEnd="@dimen/spacing_large"
android:layout_toStartOf="@+id/switch_widget"
android:gravity="center_vertical"
android:orientation="vertical">