From e5d4a5db2865d3ce6764b23da7017a2ebb20e691 Mon Sep 17 00:00:00 2001 From: Qi Ding Date: Thu, 17 Mar 2016 14:36:59 +0800 Subject: [PATCH] Fix end padding of summary text for dialog is too narrow The end padding of summary text is too narrow, so "dialogPreferredPadding" attribute should be used as the end padding of the whole list item. Change-Id: I348c1a0ac8da011b4971b4f38c7f5ee3e295146f --- res/layout/radio_with_summary.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layout/radio_with_summary.xml b/res/layout/radio_with_summary.xml index 87b1d14b530..5b89591a464 100644 --- a/res/layout/radio_with_summary.xml +++ b/res/layout/radio_with_summary.xml @@ -19,6 +19,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" + android:paddingEnd="?android:attr/dialogPreferredPadding" android:orientation="vertical" android:background="?android:attr/selectableItemBackground" android:minHeight="?android:attr/listPreferredItemHeightSmall"> @@ -31,7 +32,6 @@ android:textColor="?android:attr/textColorAlertDialogListItem" android:gravity="center_vertical" android:paddingStart="20dp" - android:paddingEnd="?android:attr/dialogPreferredPadding" android:drawableStart="?android:attr/listChoiceIndicatorSingle" android:ellipsize="marquee" />