From f7e11e908090bd4f8ed1da4d6feb21e57e8bd9e0 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Thu, 10 Oct 2013 16:28:52 -0700 Subject: Fixing RTL issues with Clings. (Bug 11008488) Change-Id: I78f891eabab53d6ded18f7c843504219d71e2883 --- res/drawable-hdpi/cling.9.png | Bin 365 -> 284 bytes res/drawable-hdpi/cling_button.9.png | Bin 416 -> 450 bytes res/drawable-hdpi/cling_button_pressed.9.png | Bin 407 -> 453 bytes res/drawable-mdpi/cling.9.png | Bin 269 -> 236 bytes res/drawable-mdpi/cling_button.9.png | Bin 355 -> 356 bytes res/drawable-mdpi/cling_button_pressed.9.png | Bin 334 -> 352 bytes res/drawable-xhdpi/cling.9.png | Bin 406 -> 327 bytes res/drawable-xhdpi/cling_button.9.png | Bin 484 -> 558 bytes res/drawable-xhdpi/cling_button_pressed.9.png | Bin 466 -> 558 bytes res/drawable-xxhdpi/cling.9.png | Bin 1242 -> 1279 bytes res/drawable-xxhdpi/cling_button.9.png | Bin 1225 -> 1597 bytes res/drawable-xxhdpi/cling_button_pressed.9.png | Bin 1225 -> 1580 bytes res/drawable/cling_arrow_end.xml | 19 +++++++++++++++++++ res/drawable/cling_arrow_start.xml | 19 +++++++++++++++++++ res/layout-port/first_run_cling.xml | 17 +++++++++++------ res/layout-port/workspace_cling.xml | 14 +++++++------- res/values/strings.xml | 24 ++++++++++++------------ 17 files changed, 68 insertions(+), 25 deletions(-) create mode 100644 res/drawable/cling_arrow_end.xml create mode 100644 res/drawable/cling_arrow_start.xml diff --git a/res/drawable-hdpi/cling.9.png b/res/drawable-hdpi/cling.9.png index 42a889fb1..36fbfc8b6 100644 Binary files a/res/drawable-hdpi/cling.9.png and b/res/drawable-hdpi/cling.9.png differ diff --git a/res/drawable-hdpi/cling_button.9.png b/res/drawable-hdpi/cling_button.9.png index 4dbe56433..e30838241 100644 Binary files a/res/drawable-hdpi/cling_button.9.png and b/res/drawable-hdpi/cling_button.9.png differ diff --git a/res/drawable-hdpi/cling_button_pressed.9.png b/res/drawable-hdpi/cling_button_pressed.9.png index 2a85cabfa..4f9ca6f7a 100644 Binary files a/res/drawable-hdpi/cling_button_pressed.9.png and b/res/drawable-hdpi/cling_button_pressed.9.png differ diff --git a/res/drawable-mdpi/cling.9.png b/res/drawable-mdpi/cling.9.png index f6f730d86..4c0f139ee 100644 Binary files a/res/drawable-mdpi/cling.9.png and b/res/drawable-mdpi/cling.9.png differ diff --git a/res/drawable-mdpi/cling_button.9.png b/res/drawable-mdpi/cling_button.9.png index 38de60aee..a0b6f9735 100644 Binary files a/res/drawable-mdpi/cling_button.9.png and b/res/drawable-mdpi/cling_button.9.png differ diff --git a/res/drawable-mdpi/cling_button_pressed.9.png b/res/drawable-mdpi/cling_button_pressed.9.png index c60837d2a..986e66944 100644 Binary files a/res/drawable-mdpi/cling_button_pressed.9.png and b/res/drawable-mdpi/cling_button_pressed.9.png differ diff --git a/res/drawable-xhdpi/cling.9.png b/res/drawable-xhdpi/cling.9.png index 9cc03c92c..1cb468159 100644 Binary files a/res/drawable-xhdpi/cling.9.png and b/res/drawable-xhdpi/cling.9.png differ diff --git a/res/drawable-xhdpi/cling_button.9.png b/res/drawable-xhdpi/cling_button.9.png index 1c93bc41f..4192563b5 100644 Binary files a/res/drawable-xhdpi/cling_button.9.png and b/res/drawable-xhdpi/cling_button.9.png differ diff --git a/res/drawable-xhdpi/cling_button_pressed.9.png b/res/drawable-xhdpi/cling_button_pressed.9.png index b5d4aaea5..d3ce46977 100644 Binary files a/res/drawable-xhdpi/cling_button_pressed.9.png and b/res/drawable-xhdpi/cling_button_pressed.9.png differ diff --git a/res/drawable-xxhdpi/cling.9.png b/res/drawable-xxhdpi/cling.9.png index 3dcf12130..7beae03bf 100644 Binary files a/res/drawable-xxhdpi/cling.9.png and b/res/drawable-xxhdpi/cling.9.png differ diff --git a/res/drawable-xxhdpi/cling_button.9.png b/res/drawable-xxhdpi/cling_button.9.png index 4f68a03ff..e41287613 100644 Binary files a/res/drawable-xxhdpi/cling_button.9.png and b/res/drawable-xxhdpi/cling_button.9.png differ diff --git a/res/drawable-xxhdpi/cling_button_pressed.9.png b/res/drawable-xxhdpi/cling_button_pressed.9.png index 4bc033764..55e89da08 100644 Binary files a/res/drawable-xxhdpi/cling_button_pressed.9.png and b/res/drawable-xxhdpi/cling_button_pressed.9.png differ diff --git a/res/drawable/cling_arrow_end.xml b/res/drawable/cling_arrow_end.xml new file mode 100644 index 000000000..3f63c7d24 --- /dev/null +++ b/res/drawable/cling_arrow_end.xml @@ -0,0 +1,19 @@ + + + + diff --git a/res/drawable/cling_arrow_start.xml b/res/drawable/cling_arrow_start.xml new file mode 100644 index 000000000..ebe91830d --- /dev/null +++ b/res/drawable/cling_arrow_start.xml @@ -0,0 +1,19 @@ + + + + diff --git a/res/layout-port/first_run_cling.xml b/res/layout-port/first_run_cling.xml index 9baee64b7..4830e5df8 100644 --- a/res/layout-port/first_run_cling.xml +++ b/res/layout-port/first_run_cling.xml @@ -54,11 +54,13 @@ diff --git a/res/layout-port/workspace_cling.xml b/res/layout-port/workspace_cling.xml index e61340eae..9c000cb54 100644 --- a/res/layout-port/workspace_cling.xml +++ b/res/layout-port/workspace_cling.xml @@ -62,9 +62,9 @@ android:id="@+id/focused_hotseat_app_bubble" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="bottom|end" - android:layout_marginEnd="25dp" - android:layout_marginBottom="100dp" + android:layout_gravity="bottom|right" + android:layout_marginRight="25dp" + android:layout_marginBottom="90dp" android:orientation="vertical" android:visibility="gone"> @@ -101,7 +101,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="15dp" - android:layout_marginStart="20dp" - android:layout_gravity="bottom|start" + android:layout_marginLeft="20dp" + android:layout_gravity="bottom|left" android:onClick="dismissWorkspaceCling" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 3e2ffce60..d26a73baf 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -230,29 +230,29 @@ s --> Widgets page %1$d of %2$d - + Welcome! - + Make yourself at home. - + - + - + Create more screens for apps and folders - + Organize your space - + Touch & hold background to manage wallpaper, widgets and settings. - + Choose some apps - + To add an app to your Home screen, touch & hold it. - + Here\'s a folder - + To create one like this, touch & hold an app, then move it over another. - + OK Error: custom workspace layout passed in but custom cling was not overwritten -- cgit v1.2.3