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
This commit is contained in:
Kyunglyul Hyun
2019-05-13 11:48:01 +09:00
parent 2a12d1e621
commit bd56cbcfb9
2 changed files with 3 additions and 1 deletions

View File

@@ -40,7 +40,7 @@
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingLeft="16dp"
android:paddingStart="16dp"
android:text="@string/media_route_chooser_searching" />
</LinearLayout>

View File

@@ -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" />
</LinearLayout>