summaryrefslogtreecommitdiffstats
path: root/res/layout-port
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2012-12-18 16:25:49 -0800
committerFabrice Di Meglio <fdimeglio@google.com>2013-01-23 18:23:06 -0800
commitcc11f742586b57c576026b7756a46209fe793ea1 (patch)
tree9b71fc15f975c68bfe7e35d5395669dee4df8b28 /res/layout-port
parentffc9f488a31b99248c27977c53d3b5f731f590e7 (diff)
downloadandroid_packages_apps_Trebuchet-cc11f742586b57c576026b7756a46209fe793ea1.tar.gz
android_packages_apps_Trebuchet-cc11f742586b57c576026b7756a46209fe793ea1.tar.bz2
android_packages_apps_Trebuchet-cc11f742586b57c576026b7756a46209fe793ea1.zip
Add first RTL support to Launcher
See bug #8064062 Launcher needs to be RTL aware Change-Id: I24b1f1977fb65246afd2005440567b5850939621
Diffstat (limited to 'res/layout-port')
-rw-r--r--res/layout-port/all_apps_cling.xml6
-rw-r--r--res/layout-port/folder_cling.xml8
-rw-r--r--res/layout-port/hotseat.xml4
-rw-r--r--res/layout-port/launcher.xml6
-rw-r--r--res/layout-port/search_bar.xml10
-rw-r--r--res/layout-port/workspace_cling.xml12
6 files changed, 23 insertions, 23 deletions
diff --git a/res/layout-port/all_apps_cling.xml b/res/layout-port/all_apps_cling.xml
index 09414ce53..6954fb212 100644
--- a/res/layout-port/all_apps_cling.xml
+++ b/res/layout-port/all_apps_cling.xml
@@ -20,7 +20,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_marginLeft="20dp"
+ android:layout_marginStart="20dp"
android:layout_marginTop="20dp">
<LinearLayout
android:layout_width="match_parent"
@@ -42,7 +42,7 @@
style="@style/ClingButton"
android:id="@+id/cling_dismiss"
android:layout_marginBottom="15dp"
- android:layout_marginRight="10dp"
- android:layout_gravity="bottom|right"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="bottom|end"
android:onClick="dismissAllAppsCling" />
</com.android.launcher2.Cling>
diff --git a/res/layout-port/folder_cling.xml b/res/layout-port/folder_cling.xml
index d2796a0e5..820675d1d 100644
--- a/res/layout-port/folder_cling.xml
+++ b/res/layout-port/folder_cling.xml
@@ -20,8 +20,8 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="10dp"
+ android:layout_marginStart="20dp"
+ android:layout_marginEnd="10dp"
android:layout_marginTop="@dimen/folderClingMarginTop">
<LinearLayout
android:layout_width="match_parent"
@@ -43,7 +43,7 @@
style="@style/ClingButton"
android:id="@+id/cling_dismiss"
android:layout_marginBottom="15dp"
- android:layout_marginRight="10dp"
- android:layout_gravity="bottom|right"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="bottom|end"
android:onClick="dismissFolderCling" />
</com.android.launcher2.Cling>
diff --git a/res/layout-port/hotseat.xml b/res/layout-port/hotseat.xml
index 376173ae9..4ca0bb820 100644
--- a/res/layout-port/hotseat.xml
+++ b/res/layout-port/hotseat.xml
@@ -25,8 +25,8 @@
android:layout_gravity="center"
android:paddingTop="@dimen/button_bar_height_top_padding"
android:paddingBottom="@dimen/button_bar_height_bottom_padding"
- android:paddingLeft="@dimen/button_bar_width_left_padding"
- android:paddingRight="@dimen/button_bar_width_right_padding"
+ android:paddingStart="@dimen/button_bar_width_left_padding"
+ android:paddingEnd="@dimen/button_bar_width_right_padding"
launcher:cellWidth="@dimen/hotseat_cell_width"
launcher:cellHeight="@dimen/hotseat_cell_height"
diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml
index 445c85ea4..4b4580710 100644
--- a/res/layout-port/launcher.xml
+++ b/res/layout-port/launcher.xml
@@ -57,8 +57,8 @@
android:id="@+id/workspace"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:paddingLeft="@dimen/workspace_left_padding"
- android:paddingRight="@dimen/workspace_right_padding"
+ android:paddingStart="@dimen/workspace_left_padding"
+ android:paddingEnd="@dimen/workspace_right_padding"
android:paddingTop="@dimen/workspace_top_padding"
android:paddingBottom="@dimen/workspace_bottom_padding"
launcher:defaultScreen="2"
@@ -104,7 +104,7 @@
android:id="@+id/voice_button_proxy"
android:layout_width="80dp"
android:layout_height="@dimen/qsb_bar_height"
- android:layout_gravity="top|right"
+ android:layout_gravity="top|end"
android:clickable="true"
android:onClick="onClickVoiceButton"
android:importantForAccessibility="no"
diff --git a/res/layout-port/search_bar.xml b/res/layout-port/search_bar.xml
index 8f58fe61f..e51c3a8c1 100644
--- a/res/layout-port/search_bar.xml
+++ b/res/layout-port/search_bar.xml
@@ -29,10 +29,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
- android:layout_alignParentLeft="true"
+ android:layout_alignParentStart="true"
android:layout_alignParentTop="true"
- android:layout_toLeftOf="@+id/voice_button_container"
- android:paddingLeft="8dp"
+ android:layout_toStartOf="@+id/voice_button_container"
+ android:paddingStart="8dp"
android:onClick="onClickSearchButton"
android:focusable="true"
android:clickable="true"
@@ -55,8 +55,8 @@
android:layout_gravity="center_vertical"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
- android:paddingRight="8dp"
- android:gravity="right"
+ android:paddingEnd="8dp"
+ android:gravity="end"
android:onClick="onClickVoiceButton"
android:focusable="true"
android:clickable="true"
diff --git a/res/layout-port/workspace_cling.xml b/res/layout-port/workspace_cling.xml
index 738e2c571..ca71a3b44 100644
--- a/res/layout-port/workspace_cling.xml
+++ b/res/layout-port/workspace_cling.xml
@@ -22,8 +22,8 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp"
+ android:layout_marginStart="20dp"
+ android:layout_marginEnd="20dp"
android:layout_marginTop="90dp">
<LinearLayout
android:layout_width="match_parent"
@@ -45,8 +45,8 @@
style="@style/ClingText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_marginLeft="20dp"
- android:layout_marginRight="20dp"
+ android:layout_marginStart="20dp"
+ android:layout_marginEnd="20dp"
android:layout_marginBottom="130dp"
android:layout_gravity="bottom"
android:gravity="center"
@@ -56,7 +56,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
- android:layout_marginRight="10dp"
- android:layout_gravity="bottom|right"
+ android:layout_marginEnd="10dp"
+ android:layout_gravity="bottom|end"
android:onClick="dismissWorkspaceCling" />
</com.android.launcher2.Cling>