Replace some paddings with margings in the preferences
This ensures that each Switch is always fully visible independently
of the size of system font.
Change-Id: I1e56a9537dbbb124d86ea0da76d48b7b53172e47
diff --git a/res/layout/preferences_dialog.xml b/res/layout/preferences_dialog.xml
index 6af60c8..999d67f 100644
--- a/res/layout/preferences_dialog.xml
+++ b/res/layout/preferences_dialog.xml
@@ -3,7 +3,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:paddingBottom="16dp"
android:paddingEnd="24dp"
android:paddingStart="24dp"
android:paddingTop="16dp">
@@ -12,7 +11,7 @@
android:id="@+id/preferences_auto_updates_check"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingBottom="16dp"
+ android:layout_marginBottom="16dp"
android:text="@string/menu_auto_updates_check"
android:textSize="16sp" />
@@ -20,7 +19,7 @@
android:id="@+id/preferences_auto_delete_updates"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingBottom="16dp"
+ android:layout_marginBottom="16dp"
android:text="@string/menu_auto_delete_updates"
android:textSize="16sp" />
@@ -28,6 +27,7 @@
android:id="@+id/preferences_mobile_data_warning"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_marginBottom="16dp"
android:text="@string/menu_mobile_data_warning"
android:textSize="16sp" />
</LinearLayout>