From 09dcfe174fb3b75faf8cfe7ad54ae3d675aa5ef0 Mon Sep 17 00:00:00 2001 From: "Cassie(Yitong) Wang" Date: Thu, 7 May 2020 04:34:19 +0000 Subject: Adjust Dialpad layout for RTL 1. Present dialed number in the right order 2. Adjust port mode layout Bug: 155441737 Bug: 151276227 Bug: 150957534 Bug: 154241156 Test: Manual Change-Id: Icee18b7e0e26f233ffc96e215d5fbf8c6392ec3c --- res/layout-port/dialpad_fragment.xml | 46 +++---------------------- res/layout-port/dialpad_info.xml | 66 ++++++++++++++++++++++++++++++++++++ res/layout/dialpad_info.xml | 2 +- res/layout/dialpad_user_profile.xml | 2 +- res/values/configs.xml | 4 +-- 5 files changed, 75 insertions(+), 45 deletions(-) create mode 100644 res/layout-port/dialpad_info.xml diff --git a/res/layout-port/dialpad_fragment.xml b/res/layout-port/dialpad_fragment.xml index fd046c1c..6c28f31f 100644 --- a/res/layout-port/dialpad_fragment.xml +++ b/res/layout-port/dialpad_fragment.xml @@ -33,43 +33,6 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"/> - - - - - - diff --git a/res/layout-port/dialpad_info.xml b/res/layout-port/dialpad_info.xml new file mode 100644 index 00000000..8169ec2d --- /dev/null +++ b/res/layout-port/dialpad_info.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + diff --git a/res/layout/dialpad_info.xml b/res/layout/dialpad_info.xml index 4219ba92..d92afd52 100644 --- a/res/layout/dialpad_info.xml +++ b/res/layout/dialpad_info.xml @@ -32,7 +32,7 @@ android:layout_height="@dimen/dialpad_info_title_container_size" android:maxLines="1" android:textAppearance="@style/TextAppearance.DialNumber" - android:gravity="center" + android:textDirection="ltr" android:autoSizeTextType="uniform" android:autoSizeMinTextSize="@dimen/dialpad_info_title_text_size_min" android:autoSizeMaxTextSize="@dimen/dialpad_info_title_text_size_max" diff --git a/res/layout/dialpad_user_profile.xml b/res/layout/dialpad_user_profile.xml index 90f4edec..7f85b19f 100644 --- a/res/layout/dialpad_user_profile.xml +++ b/res/layout/dialpad_user_profile.xml @@ -44,7 +44,7 @@ android:id="@+id/dialpad_contact_avatar" android:layout_height="@dimen/dialpad_contact_avatar_size" android:layout_width="@dimen/dialpad_contact_avatar_size" - app:layout_constraintTop_toTopOf="@id/label" + app:layout_constraintTop_toBottomOf="@id/label" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintEnd_toEndOf="parent"/> diff --git a/res/values/configs.xml b/res/values/configs.xml index 03e7a89f..0bd7ba65 100644 --- a/res/values/configs.xml +++ b/res/values/configs.xml @@ -19,8 +19,8 @@ true 1.5 200 - - 8388629 + + 21 1.0 1.0 -- cgit v1.2.3