summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSai Cheemalapati <saicheems@google.com>2014-06-23 11:26:58 -0700
committerSai Cheemalapati <saicheems@google.com>2014-06-23 16:24:08 -0700
commit54ee2790a6de767692709283a6bb1f37df62255e (patch)
tree1306228c2fb04c756e68acd82aa2cf872e41743b
parentdeedd5d2d8821ff023cea16829e9751f0249e220 (diff)
downloadpackages_apps_InCallUI-54ee2790a6de767692709283a6bb1f37df62255e.tar.gz
packages_apps_InCallUI-54ee2790a6de767692709283a6bb1f37df62255e.tar.bz2
packages_apps_InCallUI-54ee2790a6de767692709283a6bb1f37df62255e.zip
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
-rw-r--r--res/layout/primary_call_info.xml6
-rw-r--r--res/values/dimens.xml3
2 files changed, 6 insertions, 3 deletions
diff --git a/res/layout/primary_call_info.xml b/res/layout/primary_call_info.xml
index 369f7021..a6afdbcd 100644
--- a/res/layout/primary_call_info.xml
+++ b/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/res/values/dimens.xml b/res/values/dimens.xml
index a60b3922..ac82a1db 100644
--- a/res/values/dimens.xml
+++ b/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