From 6f98b976871a8a4fb9200a5415aa9d2ac54cb8b6 Mon Sep 17 00:00:00 2001 From: Sundeep Ghuman Date: Wed, 15 Mar 2017 16:40:34 -0700 Subject: [PATCH] Fix list item spacing for preferences. Bug: b/33970117 Test: Existing tests pass - purely UI margin change. See screenshots in bug. Change-Id: I08ce646c9db2401c1462801ab39713fca8f5cc26 --- res/layout/preference_material_settings.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/res/layout/preference_material_settings.xml b/res/layout/preference_material_settings.xml index ae108da5c7a..500bc857038 100644 --- a/res/layout/preference_material_settings.xml +++ b/res/layout/preference_material_settings.xml @@ -20,7 +20,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:minHeight="?android:attr/listPreferredItemHeight" + android:minHeight="?android:attr/listPreferredItemHeightSmall" android:gravity="center_vertical" android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" @@ -49,13 +49,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" - android:paddingTop="16dp" - android:paddingBottom="16dp"> + android:paddingTop="12dp" + android:paddingBottom="12dp"> @@ -64,6 +65,7 @@ android:id="@android:id/summary" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:minHeight="24dp" android:layout_below="@android:id/title" android:layout_alignStart="@android:id/title" android:textAppearance="?android:attr/textAppearanceListItemSecondary"