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 /java/com/android/incallui/sessiondata | |
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
Diffstat (limited to 'java/com/android/incallui/sessiondata')
-rw-r--r-- | java/com/android/incallui/sessiondata/res/layout/fragment_composer_text.xml | 23 |
1 files changed, 14 insertions, 9 deletions
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" |