From 205cd7727f3bd8b65892c580e6f243464878fe6e Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 15 Jan 2014 14:31:59 -0800 Subject: [PATCH] Updating Tablet clings. (Bug 11973614) Change-Id: I6cb10424a345691d50c4fac7969e0b97bbee4b3c --- res/layout-land/folder_cling.xml | 5 +- res/layout-land/launcher.xml | 11 +- res/layout-land/migration_workspace_cling.xml | 31 +++--- res/layout-land/workspace_cling.xml | 63 ++++++++--- res/layout-port/folder_cling.xml | 3 +- res/layout-port/migration_workspace_cling.xml | 2 +- res/layout-port/workspace_cling.xml | 1 + res/layout-sw600dp-port/first_run_cling.xml | 100 ++++++++++++++++++ res/layout-sw600dp-port/folder_cling.xml | 51 --------- .../migration_workspace_cling.xml | 70 ++++++++++++ res/layout-sw600dp/first_run_cling.xml | 100 ++++++++++++++++++ res/layout-sw600dp/folder_cling.xml | 66 ++++++++++++ res/layout-sw600dp/migration_cling.xml | 98 +++++++++++++++++ res/layout-sw600dp/workspace_cling.xml | 65 ++++++++++++ res/layout-sw720dp-port/folder_cling.xml | 46 -------- res/layout-sw720dp/first_run_cling.xml | 98 +++++++++++++++++ res/layout-sw720dp/launcher.xml | 16 ++- .../migration_workspace_cling.xml | 70 ++++++++++++ res/values-sw600dp/styles.xml | 29 ----- res/values-sw720dp/styles.xml | 32 ------ src/com/android/launcher3/Cling.java | 95 ++++++++++++++--- src/com/android/launcher3/DeviceProfile.java | 19 +++- src/com/android/launcher3/Launcher.java | 16 +-- src/com/android/launcher3/LauncherClings.java | 34 +++--- 24 files changed, 888 insertions(+), 233 deletions(-) create mode 100644 res/layout-sw600dp-port/first_run_cling.xml delete mode 100644 res/layout-sw600dp-port/folder_cling.xml create mode 100644 res/layout-sw600dp-port/migration_workspace_cling.xml create mode 100644 res/layout-sw600dp/first_run_cling.xml create mode 100644 res/layout-sw600dp/folder_cling.xml create mode 100644 res/layout-sw600dp/migration_cling.xml create mode 100644 res/layout-sw600dp/workspace_cling.xml delete mode 100644 res/layout-sw720dp-port/folder_cling.xml create mode 100644 res/layout-sw720dp/first_run_cling.xml create mode 100644 res/layout-sw720dp/migration_workspace_cling.xml diff --git a/res/layout-land/folder_cling.xml b/res/layout-land/folder_cling.xml index 86286d71ba..5dd372973a 100644 --- a/res/layout-land/folder_cling.xml +++ b/res/layout-land/folder_cling.xml @@ -16,7 +16,7 @@ + launcher:drawIdentifier="folder_landscape"> @@ -59,6 +60,6 @@ android:id="@+id/cling_dismiss" android:layout_marginBottom="15dp" android:layout_marginEnd="20dp" - android:layout_gravity="bottom|end" + android:layout_gravity="bottom|right" android:onClick="dismissFolderCling" /> diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml index 2880c18bfb..7791609252 100644 --- a/res/layout-land/launcher.xml +++ b/res/layout-land/launcher.xml @@ -65,12 +65,21 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:visibility="gone" /> + + - - + android:layout_width="400dp" + android:layout_height="wrap_content" + android:layout_gravity="end|center_vertical" + android:paddingEnd="60dp" + android:orientation="vertical"> + android:orientation="horizontal"> + android:layout_gravity="center_vertical" + android:src="@drawable/cling_arrow_end" /> -