summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dmitry Dementyev <dementyev@google.com> 2023-08-04 13:19:00 -0700
committer Dmitry Dementyev <dementyev@google.com> 2023-08-07 09:48:16 -0700
commit87e81c22fa3531b378ef4bce06026c0f602ff5a1 (patch)
tree9093e67fdd012e2f07cb1d2c1a0216c0c22d70cf
parent9f6b946735e41ff4b818e7cc380c26bded45bcad (diff)
Update simple_list_item_single_choice to work better with large fonts.
The list is used by newChooseAccountIntent. Test: manual - b/279879914#comment8 Bug: 279879914 Change-Id: I499d73f14301ac873218cd57ef032d64f572886d
-rw-r--r--core/res/res/layout/simple_list_item_multiple_choice.xml3
-rw-r--r--core/res/res/layout/simple_list_item_single_choice.xml3
2 files changed, 4 insertions, 2 deletions
diff --git a/core/res/res/layout/simple_list_item_multiple_choice.xml b/core/res/res/layout/simple_list_item_multiple_choice.xml
index 440b6fd8e1b1..fd9bf76aade5 100644
--- a/core/res/res/layout/simple_list_item_multiple_choice.xml
+++ b/core/res/res/layout/simple_list_item_multiple_choice.xml
@@ -17,7 +17,8 @@
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
- android:layout_height="?android:attr/listPreferredItemHeightSmall"
+ android:layout_height="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:gravity="center_vertical"
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
diff --git a/core/res/res/layout/simple_list_item_single_choice.xml b/core/res/res/layout/simple_list_item_single_choice.xml
index 02cb7f77645c..a66308e1ad02 100644
--- a/core/res/res/layout/simple_list_item_single_choice.xml
+++ b/core/res/res/layout/simple_list_item_single_choice.xml
@@ -17,7 +17,8 @@
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
- android:layout_height="?android:attr/listPreferredItemHeightSmall"
+ android:layout_height="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:gravity="center_vertical"
android:checkMark="?android:attr/listChoiceIndicatorSingle"