diff options
author | Sai Cheemalapati <saicheems@google.com> | 2014-06-23 11:26:58 -0700 |
---|---|---|
committer | Sai Cheemalapati <saicheems@google.com> | 2014-06-23 16:24:08 -0700 |
commit | d21e30f9c7bf9c841d9789c1f23cf205c677dcf5 (patch) | |
tree | ed600b0226ad42656599b3885b9602e32e405283 /InCallUI | |
parent | 1887dab1ca8f5a1242f5e934620787ca587d1c73 (diff) |
Add text resizing to InCallUI name field (1/2).
Set maximum size of primary name text to 45 pt.
Scales down to minimum size of 34 pt.
Bug: 15457502
Change-Id: I0afb82c11730383a9e9cc70636a8e502bc30ae47
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/res/layout/primary_call_info.xml | 6 | ||||
-rw-r--r-- | InCallUI/res/values/dimens.xml | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/InCallUI/res/layout/primary_call_info.xml b/InCallUI/res/layout/primary_call_info.xml index 369f70216..a6afdbcde 100644 --- a/InCallUI/res/layout/primary_call_info.xml +++ b/InCallUI/res/layout/primary_call_info.xml @@ -44,14 +44,16 @@ android:ellipsize="end" /> <!-- Name (or the phone number, if we don't have a name to display). --> - <TextView android:id="@+id/name" + <com.android.phone.common.widget.ResizingTextTextView android:id="@+id/name" + xmlns:ex="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="-5dp" android:fontFamily="sans-serif-light" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="@dimen/call_name_text_size" - android:singleLine="true" /> + android:singleLine="true" + ex:resizing_text_min_size="@dimen/call_name_text_min_size" /> <LinearLayout diff --git a/InCallUI/res/values/dimens.xml b/InCallUI/res/values/dimens.xml index a60b39227..ac82a1dbd 100644 --- a/InCallUI/res/values/dimens.xml +++ b/InCallUI/res/values/dimens.xml @@ -39,7 +39,8 @@ <!-- Text size for the name in the call info. --> <dimen name="call_status_text_size">22sp</dimen> - <dimen name="call_name_text_size">36sp</dimen> + <dimen name="call_name_text_size">45sp</dimen> + <dimen name="call_name_text_min_size">34sp</dimen> <dimen name="call_label_text_size">18sp</dimen> <!-- Right padding for name and number fields in the call banner. This padding is used to ensure that ultra-long names or |