diff options
author | Yorke Lee <yorkelee@google.com> | 2015-05-18 16:20:16 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-05-19 10:07:15 -0700 |
commit | bd3c2f12ef18de840fbab2690ef08bc506f0a616 (patch) | |
tree | c0d7440456661ca7329c7fe0e2418a6a66e1e8ff /InCallUI | |
parent | 45a8175f3cf779ffbe8cde2018aee4d97748206d (diff) |
DO NOT MERGE Tweak some layouts so that very long numbers are wrapped
Ugly, but should be very rare (large text mode + very long numbers)
and allows the user to not lose valuable context.
Bug: 18578280
Change-Id: I3c718e122ee95f47cf160998bf8b734a91bfd4cc
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/res/layout/primary_call_info.xml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 207b95bef..97385f065 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -109,11 +109,13 @@ <LinearLayout android:id="@+id/labelAndNumber" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_weight="1" android:orientation="horizontal"> <TextView android:id="@+id/label" android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_weight="0" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/incall_call_banner_subtext_color" android:textSize="@dimen/call_label_text_size" @@ -121,21 +123,23 @@ android:textDirection="ltr" /> <TextView android:id="@+id/phoneNumber" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" + android:layout_weight="1" android:layout_marginStart="6dp" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/incall_call_banner_subtext_color" android:textSize="@dimen/call_label_text_size" - android:singleLine="true" /> + android:singleLine="false" + android:visibility="gone" /> </LinearLayout> <!-- Elapsed time indication for a call in progress. --> <TextView android:id="@+id/elapsedTime" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" + android:layout_weight="0" android:textAlignment="viewEnd" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/incall_call_banner_subtext_color" |