summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-05-18 16:20:16 -0700
committerYorke Lee <yorkelee@google.com>2015-05-18 16:20:16 -0700
commit9b93ee28398fe8c160c377fd07e16da7948fef2e (patch)
tree9ebbea732ba9602c13c6ac7f50b019f23569ec3b
parent48b1ef1a1c5842d0f3b4656560c538015007e9bd (diff)
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: I45a93614b84dde4f32c8f5adc3a5130b59d3c028
-rw-r--r--InCallUI/res/layout/primary_call_info.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml
index 7127d9815..3763e2455 100644
--- a/InCallUI/res/layout/primary_call_info.xml
+++ b/InCallUI/res/layout/primary_call_info.xml
@@ -108,11 +108,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,22 +123,23 @@
android:visibility="gone" />
<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"