From 9194430a66fe5dacc6db5272804cfc96ec906baa Mon Sep 17 00:00:00 2001 From: Tsung-Mao Fang Date: Thu, 29 Apr 2021 15:27:14 +0800 Subject: [PATCH] Fix the padding for top intro preference Test: Rebuilt apk and see the screen Fix: 186717581 Change-Id: I2de39ddbda7a77f9e508101ba0e6497fa13a883a --- .../TopIntroPreference/res/layout/top_intro_preference.xml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml b/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml index 0287b1f064d05..4d6e1b7f0ac84 100644 --- a/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml +++ b/packages/SettingsLib/TopIntroPreference/res/layout/top_intro_preference.xml @@ -19,9 +19,10 @@ 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:paddingStart="20dp" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:paddingBottom="16dp" + android:paddingTop="8dp" android:background="?android:attr/selectableItemBackground" android:clipToPadding="false"> @@ -29,8 +30,6 @@ android:id="@android:id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:paddingBottom="16dp" - android:paddingTop="16dp" android:clickable="false" android:longClickable="false" android:maxLines="10"