summaryrefslogtreecommitdiffstats
path: root/res/layout-land
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-land
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-land')
-rw-r--r--res/layout-land/all_apps_cling.xml6
-rw-r--r--res/layout-land/folder_cling.xml6
-rw-r--r--res/layout-land/hotseat.xml4
-rw-r--r--res/layout-land/launcher.xml16
-rw-r--r--res/layout-land/workspace_cling.xml12
5 files changed, 22 insertions, 22 deletions
diff --git a/res/layout-land/all_apps_cling.xml b/res/layout-land/all_apps_cling.xml
index e89d4c178..fccf400af 100644
--- a/res/layout-land/all_apps_cling.xml
+++ b/res/layout-land/all_apps_cling.xml
@@ -20,7 +20,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_marginLeft="40dp"
+ android:layout_marginStart="40dp"
android:layout_marginTop="40dp">
<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-land/folder_cling.xml b/res/layout-land/folder_cling.xml
index 3d7f4f459..b39fbb1b5 100644
--- a/res/layout-land/folder_cling.xml
+++ b/res/layout-land/folder_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="dismissFolderCling" />
</com.android.launcher2.Cling>
diff --git a/res/layout-land/hotseat.xml b/res/layout-land/hotseat.xml
index d75919671..aebb21842 100644
--- a/res/layout-land/hotseat.xml
+++ b/res/layout-land/hotseat.xml
@@ -25,8 +25,8 @@
android:layout_gravity="center"
android:paddingTop="@dimen/button_bar_width_left_padding"
android:paddingBottom="@dimen/button_bar_width_right_padding"
- android:paddingLeft="@dimen/button_bar_height_top_padding"
- android:paddingRight="@dimen/button_bar_height_bottom_padding"
+ android:paddingStart="@dimen/button_bar_height_top_padding"
+ android:paddingEnd="@dimen/button_bar_height_bottom_padding"
launcher:cellWidth="@dimen/hotseat_cell_width"
launcher:cellHeight="@dimen/hotseat_cell_height"
diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml
index 051d8b25c..88490987b 100644
--- a/res/layout-land/launcher.xml
+++ b/res/layout-land/launcher.xml
@@ -35,8 +35,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"
@@ -58,16 +58,16 @@
layout="@layout/workspace_divider"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_marginLeft="@dimen/qsb_bar_height"
- android:layout_gravity="left" />
+ android:layout_marginStart="@dimen/qsb_bar_height"
+ android:layout_gravity="start" />
<include
android:id="@+id/dock_divider"
layout="@layout/workspace_divider"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:layout_marginRight="@dimen/button_bar_height"
- android:layout_gravity="right" />
+ android:layout_marginEnd="@dimen/button_bar_height"
+ android:layout_gravity="end" />
<include
android:id="@+id/paged_view_indicator"
@@ -80,7 +80,7 @@
android:id="@+id/hotseat"
android:layout_width="@dimen/button_bar_height_plus_padding"
android:layout_height="match_parent"
- android:layout_gravity="right" />
+ android:layout_gravity="end" />
<include
android:id="@+id/qsb_bar"
@@ -105,7 +105,7 @@
android:id="@+id/voice_button_proxy"
android:layout_width="@dimen/qsb_bar_height"
android:layout_height="@dimen/app_icon_size"
- android:layout_gravity="top|left"
+ android:layout_gravity="top|start"
android:layout_marginTop="64dp"
android:clickable="true"
android:onClick="onClickVoiceButton"
diff --git a/res/layout-land/workspace_cling.xml b/res/layout-land/workspace_cling.xml
index b035aa1d4..43d2a816f 100644
--- a/res/layout-land/workspace_cling.xml
+++ b/res/layout-land/workspace_cling.xml
@@ -22,7 +22,7 @@
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_marginLeft="40dp"
+ android:layout_marginStart="40dp"
android:layout_marginTop="40dp">
<LinearLayout
android:layout_width="match_parent"
@@ -44,16 +44,16 @@
style="@style/ClingText"
android:layout_width="180dp"
android:layout_height="wrap_content"
- android:layout_marginRight="130dp"
- android:layout_gravity="right|center_vertical"
- android:gravity="right"
+ android:layout_marginEnd="130dp"
+ android:layout_gravity="end|center_vertical"
+ android:gravity="end"
android:text="@string/workspace_cling_open_all_apps" />
<Button
style="@style/ClingButton"
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>