From bd56cbcfb924a493855cf082a3f4d1e0e6d028c6 Mon Sep 17 00:00:00 2001 From: Kyunglyul Hyun Date: Mon, 13 May 2019 11:48:01 +0900 Subject: [PATCH] Media: Align cast device names properly in RTL languages. This CL adds textAlignment="viewStart" to align text in media route chooser dialog. Bug: 78283886 Test: manually Change-Id: I1fac32920ae0fbd1eeeb2eb52e99743795997976 --- core/res/res/layout/media_route_chooser_dialog.xml | 2 +- core/res/res/layout/media_route_list_item.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/res/res/layout/media_route_chooser_dialog.xml b/core/res/res/layout/media_route_chooser_dialog.xml index d1c6267ea4e75..cd1c74fd7d7df 100644 --- a/core/res/res/layout/media_route_chooser_dialog.xml +++ b/core/res/res/layout/media_route_chooser_dialog.xml @@ -40,7 +40,7 @@ diff --git a/core/res/res/layout/media_route_list_item.xml b/core/res/res/layout/media_route_list_item.xml index bdca433c1c583..e8460db695827 100644 --- a/core/res/res/layout/media_route_list_item.xml +++ b/core/res/res/layout/media_route_list_item.xml @@ -34,6 +34,7 @@ android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="marquee" + android:textAlignment="viewStart" android:textAppearance="?android:attr/textAppearanceMedium" android:duplicateParentState="true" /> @@ -42,6 +43,7 @@ android:layout_height="wrap_content" android:singleLine="true" android:ellipsize="marquee" + android:textAlignment="viewStart" android:textAppearance="?android:attr/textAppearanceSmall" android:duplicateParentState="true" />