summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2018-03-13 11:13:06 -0700
committerCopybara-Service <copybara-piper@google.com>2018-03-13 12:01:59 -0700
commit8dd4dffb64fb95ca298d70574d734a4807130578 (patch)
treeda626b6e60068dfe769a291f25099256b5722c75
parent923ddfdbab1a765fc00545f79479ac9d82adb8a1 (diff)
Fix RTL label alignment in select SIM dialog
The default text alignment of a TextView is based on the content of the view (does it has any RTL characters or not). Previously the TextView width is match parent so the text will either align to the left or right depending on the content (the label is user content which we don't control). In this CL it is changed to wrap content so the whole text will align to the parent's gravity which is "start". Bug: 74421655 Test: N/A PiperOrigin-RevId: 188899698 Change-Id: Id754ed97bb6d3b6bba05d0a96c83623daca01cc8
-rw-r--r--java/com/android/contacts/common/res/layout/select_account_list_item.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/contacts/common/res/layout/select_account_list_item.xml b/java/com/android/contacts/common/res/layout/select_account_list_item.xml
index 8f7cc7017..84cb1fd66 100644
--- a/java/com/android/contacts/common/res/layout/select_account_list_item.xml
+++ b/java/com/android/contacts/common/res/layout/select_account_list_item.xml
@@ -42,7 +42,7 @@
android:orientation="vertical">
<TextView
android:id="@+id/label"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:includeFontPadding="false"
android:textAppearance="?android:attr/textAppearanceMedium"
@@ -57,7 +57,7 @@
android:visibility="gone"/>
<TextView
android:id="@+id/hint"
- android:layout_width="match_parent"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:includeFontPadding="false"
android:maxLines="1"