summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCassie(Yitong) Wang <cassieyw@google.com>2020-06-04 01:28:33 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-06-04 01:28:33 +0000
commit606b2eb9001e3be22a08cd61c0289f511b27a0b6 (patch)
treeed32015dff5de8be4a83aa142c157a0df4070c50
parent22cca5b564205016a253f28873fa33ffabd83f8f (diff)
parentfa47bd386955e9be4813a920630637f6103b786d (diff)
downloadplatform_packages_apps_Car_Dialer-606b2eb9001e3be22a08cd61c0289f511b27a0b6.tar.gz
platform_packages_apps_Car_Dialer-606b2eb9001e3be22a08cd61c0289f511b27a0b6.tar.bz2
platform_packages_apps_Car_Dialer-606b2eb9001e3be22a08cd61c0289f511b27a0b6.zip
Format numbers and addresses for RTL am: fa47bd3869
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/Dialer/+/11710602 Change-Id: I3f6894f78ada141adcd15cde29402b654ca482e2
-rw-r--r--res/layout-port/user_profile_large.xml2
-rw-r--r--res/layout-w1280dp/type_down_list_item.xml1
-rw-r--r--res/layout/call_history_list_item.xml1
-rw-r--r--res/layout/contact_details_address.xml1
-rw-r--r--res/layout/contact_details_number.xml1
-rw-r--r--res/layout/onhold_user_profile.xml1
-rw-r--r--res/layout/type_down_list_item.xml1
-rw-r--r--res/layout/user_profile_large.xml2
-rw-r--r--res/layout/user_profile_list_item.xml1
-rw-r--r--res/values/themes.xml5
10 files changed, 16 insertions, 0 deletions
diff --git a/res/layout-port/user_profile_large.xml b/res/layout-port/user_profile_large.xml
index fbc601c6..71a94fb0 100644
--- a/res/layout-port/user_profile_large.xml
+++ b/res/layout-port/user_profile_large.xml
@@ -25,6 +25,7 @@ limitations under the License.
android:id="@+id/user_profile_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.InCallUserTitle"
android:paddingTop="@dimen/in_call_margin_between_avatar_and_text"
android:singleLine="true"/>
@@ -32,6 +33,7 @@ limitations under the License.
android:id="@+id/user_profile_phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber"
android:singleLine="true"
android:paddingTop="@dimen/in_call_phone_number_margin_top"/>
diff --git a/res/layout-w1280dp/type_down_list_item.xml b/res/layout-w1280dp/type_down_list_item.xml
index fec8a538..28afee48 100644
--- a/res/layout-w1280dp/type_down_list_item.xml
+++ b/res/layout-w1280dp/type_down_list_item.xml
@@ -50,6 +50,7 @@
android:id="@+id/phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:singleLine="true"
app:layout_constraintTop_toBottomOf="@id/contact_name"
app:layout_constraintBottom_toBottomOf="parent"
diff --git a/res/layout/call_history_list_item.xml b/res/layout/call_history_list_item.xml
index 813a5e1b..e45efca3 100644
--- a/res/layout/call_history_list_item.xml
+++ b/res/layout/call_history_list_item.xml
@@ -57,6 +57,7 @@ limitations under the License.
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:layout_marginEnd="@dimen/call_history_text_margin_end"
android:singleLine="true"
app:layout_constraintVertical_chainStyle="packed"
diff --git a/res/layout/contact_details_address.xml b/res/layout/contact_details_address.xml
index cd15f661..61e62420 100644
--- a/res/layout/contact_details_address.xml
+++ b/res/layout/contact_details_address.xml
@@ -35,6 +35,7 @@
<TextView
android:id="@+id/title"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.ContactDetailsListTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/res/layout/contact_details_number.xml b/res/layout/contact_details_number.xml
index c7ef8cb5..30b0b1ab 100644
--- a/res/layout/contact_details_number.xml
+++ b/res/layout/contact_details_number.xml
@@ -35,6 +35,7 @@
<TextView
android:id="@+id/title"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.ContactDetailsListTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
diff --git a/res/layout/onhold_user_profile.xml b/res/layout/onhold_user_profile.xml
index 235a013c..1b048772 100644
--- a/res/layout/onhold_user_profile.xml
+++ b/res/layout/onhold_user_profile.xml
@@ -46,6 +46,7 @@
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:layout_marginEnd="@dimen/onhold_profile_status_margin"
android:textAppearance="?android:attr/textAppearanceLarge"
android:singleLine="true"
diff --git a/res/layout/type_down_list_item.xml b/res/layout/type_down_list_item.xml
index a0476f60..73cada3c 100644
--- a/res/layout/type_down_list_item.xml
+++ b/res/layout/type_down_list_item.xml
@@ -39,6 +39,7 @@
android:id="@+id/phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:singleLine="true"
app:layout_constraintTop_toBottomOf="@id/contact_name"
app:layout_constraintBottom_toBottomOf="parent"
diff --git a/res/layout/user_profile_large.xml b/res/layout/user_profile_large.xml
index 6b74b076..0fe453d7 100644
--- a/res/layout/user_profile_large.xml
+++ b/res/layout/user_profile_large.xml
@@ -31,6 +31,7 @@ limitations under the License.
android:paddingStart="@dimen/in_call_margin_between_avatar_and_text">
<TextView
android:id="@+id/user_profile_title"
+ android:theme="@style/Theme.Dialer.BidiText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.InCallUserTitle"
@@ -39,6 +40,7 @@ limitations under the License.
android:id="@+id/user_profile_phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:theme="@style/Theme.Dialer.BidiText"
android:textAppearance="@style/TextAppearance.InCallUserPhoneNumber"
android:singleLine="true"
android:layout_marginTop="@dimen/in_call_phone_number_margin_top"/>
diff --git a/res/layout/user_profile_list_item.xml b/res/layout/user_profile_list_item.xml
index d9fbeaf3..b3e2462c 100644
--- a/res/layout/user_profile_list_item.xml
+++ b/res/layout/user_profile_list_item.xml
@@ -31,6 +31,7 @@
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="fill_parent"
+ android:theme="@style/Theme.Dialer.BidiText"
android:orientation="vertical"
android:paddingStart="@dimen/in_call_margin_between_avatar_and_text">
<TextView
diff --git a/res/values/themes.xml b/res/values/themes.xml
index 1ae011a7..3638b146 100644
--- a/res/values/themes.xml
+++ b/res/values/themes.xml
@@ -21,6 +21,11 @@ limitations under the License.
<item name="android:textDirection">locale</item>
</style>
+ <style name="Theme.Dialer.BidiText" parent="Theme.Dialer">
+ <item name="android:textDirection">ltr</item>
+ <item name="android:textAlignment">viewStart</item>
+ </style>
+
<style name="Theme.Dialer.Telecom">
<item name="toolbarTitleMode">@integer/config_toolbar_title_mode</item>
</style>