diff options
author | calderwoodra <calderwoodra@google.com> | 2017-06-23 11:02:01 -0700 |
---|---|---|
committer | Usman Abdullah <uabdullah@google.com> | 2017-06-23 13:24:04 -0700 |
commit | 9e71c63d0d45007363827d3cd7969ddd5e70e035 (patch) | |
tree | 21e82453f497064cb619cac3454a5acb5c73ee6d | |
parent | 9b9fcc08d21054fc322f0936aebc90c31b51389c (diff) |
Updated in call ui for EC calls with text to not get cropped.
screenshots:
short message (before cl): http://screen/pMAgfV540Y5
short message (after cl): http://screen/VN3TVTBYjPN
long message (before cl): http://screen/V8jSApXmEC2
long message (after cl): http://screen/Vd7zyf2JGvP
long message zoomed (before cl): http://screen/urWDNGACgOf
long message zoomed (after cl): http://screen/i2xEch8HHoq
PiperOrigin-RevId: 159968371
Change-Id: Icaf0a69949b206efd8d08001065cfb4ccdcb1726
-rw-r--r-- | java/com/android/dialer/callcomposer/res/layout/call_composer_activity.xml | 6 | ||||
-rw-r--r-- | java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml | 23 |
2 files changed, 20 insertions, 9 deletions
diff --git a/java/com/android/dialer/callcomposer/res/layout/call_composer_activity.xml b/java/com/android/dialer/callcomposer/res/layout/call_composer_activity.xml index 588cc1d42..48d6368c2 100644 --- a/java/com/android/dialer/callcomposer/res/layout/call_composer_activity.xml +++ b/java/com/android/dialer/callcomposer/res/layout/call_composer_activity.xml @@ -43,6 +43,8 @@ android:layout_marginTop="@dimen/call_composer_contact_container_margin_top" android:paddingTop="@dimen/call_composer_contact_container_padding_top" android:paddingBottom="@dimen/call_composer_contact_container_padding_bottom" + android:paddingStart="16dp" + android:paddingEnd="16dp" android:background="@color/dialer_theme_color"> <TextView @@ -50,6 +52,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" + android:maxLines="1" + android:ellipsize="end" android:textColor="@color/background_dialer_white" android:textSize="@dimen/call_composer_name_text_size"/> @@ -58,6 +62,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" + android:maxLines="1" + android:ellipsize="end" android:textColor="@color/background_dialer_white" android:textSize="@dimen/call_composer_number_text_size"/> </LinearLayout> diff --git a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml index d2147ea62..b93db63ad 100644 --- a/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml +++ b/java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml @@ -16,29 +16,34 @@ --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="16dp" android:paddingStart="@dimen/answer_message_margin_start_end" android:paddingEnd="@dimen/answer_message_margin_start_end"> - <TextView + <android.support.v7.widget.AppCompatTextView android:id="@id/answer_message_text" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/answer_message_contents_margin_top" android:layout_marginBottom="4dp" android:layout_centerHorizontal="true" android:layout_alignTop="@+id/answer_message_avatar" - android:paddingTop="44dp" - android:paddingBottom="44dp" - android:paddingStart="18dp" - android:paddingEnd="18dp" - android:background="@drawable/answer_text_only_background" android:elevation="@dimen/answer_data_elevation" - android:gravity="center_horizontal" + android:gravity="center" + android:paddingTop="22dp" + android:paddingBottom="22dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:minHeight="108dp" + android:lineSpacingMultiplier="1.2" android:textColor="@color/background_dialer_white" - android:textAppearance="@style/Dialer.Incall.TextAppearance.Message"/> + android:textAppearance="@style/Dialer.Incall.TextAppearance.Message" + android:background="@drawable/answer_text_only_background" + app:autoSizeTextType="uniform" + app:autoSizeMaxTextSize="44sp"/> <ImageView android:id="@id/answer_message_avatar" |