Skip to content

Commit

Permalink
Android: Fix padding if settings UI is too small
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamer64ytb committed Aug 20, 2024
1 parent ca0a94a commit 7867139
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/android/app/src/main/res/layout/list_item_setting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -60,6 +60,7 @@
android:textAlignment="viewStart"
android:textStyle="bold"
android:textSize="13sp"
android:visibility="gone"
tools:text="1x" />

</LinearLayout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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">
Expand Down

0 comments on commit 7867139

Please sign in to comment.