summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-02-05 10:52:51 -0800
committerJeff Sharkey <jsharkey@android.com>2013-02-05 10:55:36 -0800
commit76483d4dff2243db6c92a30182b9197f9c14e7c6 (patch)
treefd12e05e186dd93d98cac1bcbe563118473e423f /ui
parent70c0e1eff5ff7cd5051738f76cecd6cb87353a43 (diff)
downloadandroid_packages_providers_DownloadProvider-76483d4dff2243db6c92a30182b9197f9c14e7c6.tar.gz
android_packages_providers_DownloadProvider-76483d4dff2243db6c92a30182b9197f9c14e7c6.tar.bz2
android_packages_providers_DownloadProvider-76483d4dff2243db6c92a30182b9197f9c14e7c6.zip
Update Downloads UI for RTL languages.
Bug: 8133419 Change-Id: I0c8c0909e41d51cfa2e136304a0a13c5d46afb3b
Diffstat (limited to 'ui')
-rw-r--r--ui/AndroidManifest.xml5
-rw-r--r--ui/res/layout/download_list_item.xml19
2 files changed, 15 insertions, 9 deletions
diff --git a/ui/AndroidManifest.xml b/ui/AndroidManifest.xml
index 04d18635..97147454 100644
--- a/ui/AndroidManifest.xml
+++ b/ui/AndroidManifest.xml
@@ -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" />
diff --git a/ui/res/layout/download_list_item.xml b/ui/res/layout/download_list_item.xml
index e5759d5d..1884e1a0 100644
--- a/ui/res/layout/download_list_item.xml
+++ b/ui/res/layout/download_list_item.xml
@@ -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"
@@ -40,9 +41,10 @@
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"