Update Downloads UI for RTL languages.
Jeff Sharkey [Tue, 5 Feb 2013 18:52:51 +0000 (10:52 -0800)]
Bug: 8133419
Change-Id: I0c8c0909e41d51cfa2e136304a0a13c5d46afb3b

ui/AndroidManifest.xml
ui/res/layout/download_list_item.xml

index 04d1863..9714745 100644 (file)
@@ -9,11 +9,12 @@
     <application android:process="android.process.media"
                  android:label="@string/app_label"
                  android:icon="@mipmap/ic_launcher_download"
-                 android:hardwareAccelerated="true">
+                 android:hardwareAccelerated="true"
+                 android:supportsRtl="true">
+
         <activity android:name=".DownloadList"
                   android:launchMode="singleTop"
                   android:theme="@android:style/Theme.Holo.DialogWhenLarge">
-
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <category android:name="android.intent.category.LAUNCHER" />
index e5759d5..1884e1a 100644 (file)
@@ -21,8 +21,9 @@
     xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
-    android:paddingLeft="?android:attr/listPreferredItemPaddingLeft"
-    android:paddingRight="?android:attr/listPreferredItemPaddingRight"
+    android:minHeight="?android:attr/listPreferredItemHeight"
+    android:paddingStart="?android:attr/listPreferredItemPaddingStart"
+    android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
     android:paddingTop="8dip"
     android:paddingBottom="8dip"
     android:columnCount="4"
         android:layout_width="@android:dimen/app_icon_size"
         android:layout_height="@android:dimen/app_icon_size"
         android:layout_rowSpan="3"
-        android:layout_marginRight="8dip"
+        android:layout_marginEnd="8dip"
         android:layout_gravity="center_vertical"
-        android:scaleType="centerInside" />
+        android:scaleType="centerInside"
+        android:contentDescription="@null" />
 
     <TextView
         android:id="@+id/download_title"
@@ -52,7 +54,8 @@
         android:singleLine="true"
         android:ellipsize="marquee"
         android:textStyle="bold"
-        android:textAppearance="?android:attr/textAppearance" />
+        android:textAppearance="?android:attr/textAppearance"
+        android:textAlignment="viewStart" />
 
     <TextView
         android:id="@+id/domain"
@@ -61,7 +64,8 @@
         android:layout_gravity="fill_horizontal"
         android:singleLine="true"
         android:ellipsize="marquee"
-        android:textAppearance="?android:attr/textAppearanceSmall" />
+        android:textAppearance="?android:attr/textAppearanceSmall"
+        android:textAlignment="viewStart" />
 
     <TextView
         android:id="@+id/size_text"
@@ -69,7 +73,8 @@
         android:layout_gravity="fill_horizontal"
         android:singleLine="true"
         android:ellipsize="marquee"
-        android:textAppearance="?android:attr/textAppearanceSmall" />
+        android:textAppearance="?android:attr/textAppearanceSmall"
+        android:textAlignment="viewStart" />
 
     <TextView
         android:id="@+id/status_text"