diff options
| author | 2015-05-12 15:25:29 -0700 | |
|---|---|---|
| committer | 2015-05-12 15:25:29 -0700 | |
| commit | 9050c97bc61a7d2ecf99d380bc8343f01d3fd9bd (patch) | |
| tree | 73c8fd312c35fdf1dc707db4e096a840cc559cf8 | |
| parent | 6dda58e7acb13f8a9c3fab385055eedf7d5c9416 (diff) | |
Use drawableStart in dialog list item so we can set padding
And you might think, why does CheckedTextView implement its own drawable
when we have a perfectly good TextView that not only supports drawables
but also supports adjusting the padding?
Good question.
Change-Id: I1ed598846c8a08fffaec9258cf0c3ff86c25353a
| -rw-r--r-- | core/res/res/layout/select_dialog_multichoice_material.xml | 4 | ||||
| -rw-r--r-- | core/res/res/layout/select_dialog_singlechoice_material.xml | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/res/res/layout/select_dialog_multichoice_material.xml b/core/res/res/layout/select_dialog_multichoice_material.xml index e21df73d70c7..36e8e57b2988 100644 --- a/core/res/res/layout/select_dialog_multichoice_material.xml +++ b/core/res/res/layout/select_dialog_multichoice_material.xml @@ -25,6 +25,6 @@ android:gravity="center_vertical" android:paddingStart="@dimen/select_dialog_padding_start_material" android:paddingEnd="?attr/dialogPreferredPadding" - android:checkMark="?attr/listChoiceIndicatorMultiple" - android:checkMarkGravity="start" + android:drawableStart="?attr/listChoiceIndicatorMultiple" + android:drawablePadding="20dp" android:ellipsize="marquee" /> diff --git a/core/res/res/layout/select_dialog_singlechoice_material.xml b/core/res/res/layout/select_dialog_singlechoice_material.xml index 38283174373c..995272ad80ef 100644 --- a/core/res/res/layout/select_dialog_singlechoice_material.xml +++ b/core/res/res/layout/select_dialog_singlechoice_material.xml @@ -25,6 +25,6 @@ android:gravity="center_vertical" android:paddingStart="@dimen/select_dialog_padding_start_material" android:paddingEnd="?attr/dialogPreferredPadding" - android:checkMark="?attr/listChoiceIndicatorSingle" - android:checkMarkGravity="start" + android:drawableStart="?attr/listChoiceIndicatorSingle" + android:drawablePadding="20dp" android:ellipsize="marquee" /> |