OSDN Git Service

Rtl layout support for about phone v2
authorjeffreyhuang <jeffreyhuang@google.com>
Fri, 3 Nov 2017 21:46:23 +0000 (14:46 -0700)
committerjeffreyhuang <jeffreyhuang@google.com>
Fri, 3 Nov 2017 21:46:23 +0000 (14:46 -0700)
 - Add textAlignment attribute so that text has correct alignment in rtl
 layouts

Bug: 36458278
Test: manual with settings app
Change-Id: I9360ae517290d0b115289e739441684588d4c216

res/values/styles.xml

index 8815bb3..f3b67e2 100644 (file)
     </style>
 
     <style name="device_info_dialog_label">
+        <item name="android:textAlignment">viewStart</item>
         <item name="android:textAppearance">@android:style/TextAppearance.Material.Body1</item>
         <item name="android:textColor">?android:attr/textColorSecondary</item>
     </style>
 
     <style name="device_info_dialog_value">
+        <item name="android:textAlignment">viewStart</item>
         <item name="android:textAppearance">@android:style/TextAppearance.Material.Body2</item>
         <item name="android:paddingBottom">24dp</item>
     </style>