diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-12-18 16:25:49 -0800 |
---|---|---|
committer | Fabrice Di Meglio <fdimeglio@google.com> | 2013-01-23 18:23:06 -0800 |
commit | cc11f742586b57c576026b7756a46209fe793ea1 (patch) | |
tree | 9b71fc15f975c68bfe7e35d5395669dee4df8b28 /res/layout-sw720dp | |
parent | ffc9f488a31b99248c27977c53d3b5f731f590e7 (diff) | |
download | android_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-sw720dp')
-rw-r--r-- | res/layout-sw720dp/all_apps_cling.xml | 2 | ||||
-rw-r--r-- | res/layout-sw720dp/external_widget_drop_list_item.xml | 4 | ||||
-rw-r--r-- | res/layout-sw720dp/folder_cling.xml | 2 | ||||
-rw-r--r-- | res/layout-sw720dp/hotseat.xml | 4 | ||||
-rw-r--r-- | res/layout-sw720dp/launcher.xml | 8 | ||||
-rw-r--r-- | res/layout-sw720dp/market_button.xml | 4 | ||||
-rw-r--r-- | res/layout-sw720dp/search_bar.xml | 10 | ||||
-rw-r--r-- | res/layout-sw720dp/workspace.xml | 4 | ||||
-rw-r--r-- | res/layout-sw720dp/workspace_cling.xml | 12 |
9 files changed, 25 insertions, 25 deletions
diff --git a/res/layout-sw720dp/all_apps_cling.xml b/res/layout-sw720dp/all_apps_cling.xml index 7079b2107..d6e19d302 100644 --- a/res/layout-sw720dp/all_apps_cling.xml +++ b/res/layout-sw720dp/all_apps_cling.xml @@ -20,7 +20,7 @@ <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginLeft="@dimen/cling_text_block_offset_x" + android:layout_marginStart="@dimen/cling_text_block_offset_x" android:layout_marginTop="@dimen/cling_text_block_offset_y"> <LinearLayout android:layout_width="match_parent" diff --git a/res/layout-sw720dp/external_widget_drop_list_item.xml b/res/layout-sw720dp/external_widget_drop_list_item.xml index a24ad3ace..48e333b3a 100644 --- a/res/layout-sw720dp/external_widget_drop_list_item.xml +++ b/res/layout-sw720dp/external_widget_drop_list_item.xml @@ -24,7 +24,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:layout_marginLeft="20dp" + android:layout_marginStart="20dp" android:maxWidth="32dp" android:maxHeight="32dp" android:scaleType="fitCenter" @@ -33,7 +33,7 @@ android:id="@+id/provider" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginLeft="5dp" + android:layout_marginStart="5dp" android:gravity="center_vertical" android:textSize="18sp" /> </LinearLayout> diff --git a/res/layout-sw720dp/folder_cling.xml b/res/layout-sw720dp/folder_cling.xml index 4188804c2..f66da7bc7 100644 --- a/res/layout-sw720dp/folder_cling.xml +++ b/res/layout-sw720dp/folder_cling.xml @@ -20,7 +20,7 @@ <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_marginLeft="@dimen/cling_text_block_offset_x" + android:layout_marginStart="@dimen/cling_text_block_offset_x" android:layout_marginTop="@dimen/cling_text_block_offset_y"> <LinearLayout android:layout_width="match_parent" diff --git a/res/layout-sw720dp/hotseat.xml b/res/layout-sw720dp/hotseat.xml index bcd5b9d82..a8faf3665 100644 --- a/res/layout-sw720dp/hotseat.xml +++ b/res/layout-sw720dp/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-sw720dp/launcher.xml b/res/layout-sw720dp/launcher.xml index 81a8f37da..1fc53222f 100644 --- a/res/layout-sw720dp/launcher.xml +++ b/res/layout-sw720dp/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,8 +104,8 @@ android:id="@+id/voice_button_proxy" android:layout_width="80dp" android:layout_height="@dimen/qsb_bar_height" - android:layout_marginRight="@dimen/qsb_voice_proxy_padding_right" - android:layout_gravity="top|right" + android:layout_marginEnd="@dimen/qsb_voice_proxy_padding_right" + android:layout_gravity="top|end" android:clickable="true" android:onClick="onClickVoiceButton" android:importantForAccessibility="no" diff --git a/res/layout-sw720dp/market_button.xml b/res/layout-sw720dp/market_button.xml index 7eaeafac3..f1e99599e 100644 --- a/res/layout-sw720dp/market_button.xml +++ b/res/layout-sw720dp/market_button.xml @@ -18,8 +18,8 @@ style="@style/MarketButton" android:onClick="onClickAppMarketButton" android:gravity="center" - android:paddingLeft="32dp" - android:paddingRight="32dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" android:drawablePadding="10dp" android:background="@drawable/tab_widget_indicator_selector" android:text="@string/market" diff --git a/res/layout-sw720dp/search_bar.xml b/res/layout-sw720dp/search_bar.xml index 8f58fe61f..e51c3a8c1 100644 --- a/res/layout-sw720dp/search_bar.xml +++ b/res/layout-sw720dp/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-sw720dp/workspace.xml b/res/layout-sw720dp/workspace.xml index 5658a4b4f..bf2abfdb4 100644 --- a/res/layout-sw720dp/workspace.xml +++ b/res/layout-sw720dp/workspace.xml @@ -19,8 +19,8 @@ <com.android.launcher2.Workspace xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" - 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" diff --git a/res/layout-sw720dp/workspace_cling.xml b/res/layout-sw720dp/workspace_cling.xml index 738e2c571..ca71a3b44 100644 --- a/res/layout-sw720dp/workspace_cling.xml +++ b/res/layout-sw720dp/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> |