From cc11f742586b57c576026b7756a46209fe793ea1 Mon Sep 17 00:00:00 2001 From: Fabrice Di Meglio Date: Tue, 18 Dec 2012 16:25:49 -0800 Subject: Add first RTL support to Launcher See bug #8064062 Launcher needs to be RTL aware Change-Id: I24b1f1977fb65246afd2005440567b5850939621 --- res/layout-land/all_apps_cling.xml | 6 ++-- res/layout-land/folder_cling.xml | 6 ++-- res/layout-land/hotseat.xml | 4 +-- res/layout-land/launcher.xml | 16 +++++----- res/layout-land/workspace_cling.xml | 12 ++++---- res/layout-port/all_apps_cling.xml | 6 ++-- res/layout-port/folder_cling.xml | 8 ++--- res/layout-port/hotseat.xml | 4 +-- res/layout-port/launcher.xml | 6 ++-- res/layout-port/search_bar.xml | 10 +++--- res/layout-port/workspace_cling.xml | 12 ++++---- res/layout-sw600dp-port/all_apps_cling.xml | 6 ++-- res/layout-sw600dp-port/folder_cling.xml | 8 ++--- res/layout-sw720dp-port/folder_cling.xml | 2 +- res/layout-sw720dp/all_apps_cling.xml | 2 +- .../external_widget_drop_list_item.xml | 4 +-- res/layout-sw720dp/folder_cling.xml | 2 +- res/layout-sw720dp/hotseat.xml | 4 +-- res/layout-sw720dp/launcher.xml | 8 ++--- res/layout-sw720dp/market_button.xml | 4 +-- res/layout-sw720dp/search_bar.xml | 10 +++--- res/layout-sw720dp/workspace.xml | 4 +-- res/layout-sw720dp/workspace_cling.xml | 12 ++++---- res/layout/add_list_item.xml | 4 +-- res/layout/apps_customize_pane.xml | 8 ++--- res/layout/apps_customize_widget.xml | 17 +++++----- res/layout/appwidget_error.xml | 4 +-- res/layout/custom_workspace_cling.xml | 4 +-- res/layout/market_button.xml | 4 +-- res/layout/rename_folder.xml | 2 +- res/layout/user_folder.xml | 4 +-- res/layout/workspace_divider.xml | 4 +-- res/layout/workspace_screen.xml | 4 +-- res/values-land/styles.xml | 10 +++--- res/values-sw340dp-land/styles.xml | 2 +- res/values-sw340dp-port/styles.xml | 4 +-- res/values-sw600dp/styles.xml | 4 +-- res/values-sw720dp/styles.xml | 36 +++++++++++----------- res/values/strings.xml | 4 +-- res/values/styles.xml | 32 +++++++++---------- 40 files changed, 152 insertions(+), 151 deletions(-) (limited to 'res') 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 @@ 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 @@ 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" /> + android:layout_marginEnd="@dimen/button_bar_height" + android:layout_gravity="end" /> + android:layout_gravity="end" />