summaryrefslogtreecommitdiff
path: root/InCallUI/res/layout
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-09 19:26:07 -0700
committerAndrew Lee <anwlee@google.com>2015-06-10 10:29:25 -0700
commitd814e23ef2b8e02c28a0d08eeb139cfea413bc7a (patch)
tree9a7c522244dc0d5bc3a583733f19e1dad77859ea /InCallUI/res/layout
parent7ca64119108e69ae447e56e6239150a96306f70e (diff)
Address long call state labels.
+ Specify char limit for common labels. + Use ResizingTextView. Bug: 20749917 Change-Id: I1291d2d5d0ce9043a35f6553a5d7fc0b39c23354
Diffstat (limited to 'InCallUI/res/layout')
-rw-r--r--InCallUI/res/layout/primary_call_info.xml10
1 files changed, 7 insertions, 3 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml
index 3763e2455..c680ed6b9 100644
--- a/InCallUI/res/layout/primary_call_info.xml
+++ b/InCallUI/res/layout/primary_call_info.xml
@@ -60,7 +60,9 @@
android:scaleType="center"
android:visibility="gone" />
- <TextView android:id="@+id/callStateLabel"
+ <com.android.phone.common.widget.ResizingTextTextView
+ xmlns:ex="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/callStateLabel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAlignment="viewStart"
@@ -70,13 +72,15 @@
android:alpha="0.7"
android:singleLine="true"
android:gravity="start"
- android:ellipsize="end" />
+ android:ellipsize="end"
+ ex:resizing_text_min_size="@dimen/call_status_text_min_size" />
</LinearLayout>
<!-- Name (or the phone number, if we don't have a name to display). -->
- <com.android.phone.common.widget.ResizingTextTextView android:id="@+id/name"
+ <com.android.phone.common.widget.ResizingTextTextView
xmlns:ex="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="-5dp"