diff --git a/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target.xml b/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target.xml index 21fcedcc01b6d..f6a64c6e76ca2 100644 --- a/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target.xml +++ b/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target.xml @@ -23,16 +23,16 @@ android:layout_height="wrap_content" android:minHeight="?android:attr/listPreferredItemHeightSmall" android:gravity="center_vertical" - android:background="@android:color/transparent" + android:background="?android:attr/selectableItemBackground" android:clipToPadding="false"> @@ -44,12 +44,14 @@ android:minWidth="56dp" android:orientation="horizontal" android:clipToPadding="false" + android:duplicateParentState="true" android:paddingTop="4dp" android:paddingBottom="4dp"> @@ -58,6 +60,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" + android:duplicateParentState="true" android:paddingTop="16dp" android:paddingBottom="16dp"> @@ -66,6 +69,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" + android:duplicateParentState="true" android:textAppearance="?android:attr/textAppearanceListItem" android:ellipsize="marquee" /> @@ -75,6 +79,7 @@ android:layout_height="wrap_content" android:layout_below="@android:id/title" android:layout_alignStart="@android:id/title" + android:duplicateParentState="true" android:textAppearance="?android:attr/textAppearanceListItemSecondary" android:textColor="?android:attr/textColorSecondary" android:maxLines="10" /> @@ -90,6 +95,7 @@ android:id="@android:id/widget_frame" android:layout_width="wrap_content" android:layout_height="match_parent" + android:duplicateParentState="true" android:minWidth="64dp" android:gravity="center" android:orientation="vertical" /> diff --git a/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target_divider.xml b/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target_divider.xml index bd477f8068fff..44732e58c7b2e 100644 --- a/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target_divider.xml +++ b/packages/SettingsLib/TwoTargetPreference/res/layout/preference_two_target_divider.xml @@ -22,10 +22,12 @@ android:layout_height="match_parent" android:gravity="start|center_vertical" android:orientation="horizontal" + android:duplicateParentState="true" android:paddingTop="16dp" android:paddingBottom="16dp"> \ No newline at end of file