From c2b0c7bf31d8286b908beb33e291e4888a6c54ca Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Wed, 31 May 2017 15:40:02 -0700 Subject: [PATCH] Use a common style for custom preference icon layouts Change-Id: Ief3bc54f700cb891041adf92846149c6f41caad0 Fix: 35961001 Test: instrumentation test --- res/layout/expand_preference.xml | 4 ++-- res/layout/preference_material_settings.xml | 4 ++-- res/layout/preference_small_icon.xml | 4 ++-- res/layout/preference_volume_slider.xml | 2 +- res/layout/storage_item.xml | 14 ++++++++------ res/layout/storage_volume.xml | 3 +-- .../com/android/settings/dashboard/FirstIdViewMatcher.java | 0 .../android/settings/dashboard/PreferenceThemeTest.java | 3 +-- 8 files changed, 17 insertions(+), 17 deletions(-) rename tests/{app => unit}/src/com/android/settings/dashboard/FirstIdViewMatcher.java (100%) rename tests/{app => unit}/src/com/android/settings/dashboard/PreferenceThemeTest.java (96%) diff --git a/res/layout/expand_preference.xml b/res/layout/expand_preference.xml index f17e67c28f..729dfd9919 100644 --- a/res/layout/expand_preference.xml +++ b/res/layout/expand_preference.xml @@ -28,10 +28,10 @@ android:clipToPadding="false"> + android:background="?android:attr/selectableItemBackground" + android:clipToPadding="false"> + android:orientation="horizontal" + android:clipToPadding="false" + android:paddingStart="?android:attr/listPreferredItemPaddingStart">