summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2014-08-28 00:08:45 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-28 00:08:46 +0000
commite3b36d51049b3361192217eaaa275e75eaba1dd1 (patch)
tree29a33b9636e5074ae48878b13ee669736085ccf7 /res
parent74dc410bd19e07cde8702ad9c33dc1c25332d664 (diff)
parent7661614383dc17d69a9b1fd819e4d610896d5205 (diff)
downloadandroid_packages_apps_Trebuchet-e3b36d51049b3361192217eaaa275e75eaba1dd1.tar.gz
android_packages_apps_Trebuchet-e3b36d51049b3361192217eaaa275e75eaba1dd1.tar.bz2
android_packages_apps_Trebuchet-e3b36d51049b3361192217eaaa275e75eaba1dd1.zip
Merge "Updating Clings UI" into ub-now-porkchop
Diffstat (limited to 'res')
-rw-r--r--res/drawable-hdpi/cling_bg.9.pngbin0 -> 1352 bytes
-rw-r--r--res/drawable-mdpi/cling_bg.9.pngbin0 -> 987 bytes
-rw-r--r--res/drawable-xhdpi/cling_bg.9.pngbin0 -> 1829 bytes
-rw-r--r--res/drawable-xxhdpi/cling_bg.9.pngbin0 -> 2936 bytes
-rw-r--r--res/layout-land/longpress_cling.xml24
-rw-r--r--res/layout-land/migration_cling.xml12
-rw-r--r--res/layout-port/longpress_cling.xml15
-rw-r--r--res/layout-port/migration_cling.xml8
-rw-r--r--res/layout-sw600dp-port/longpress_cling.xml25
-rw-r--r--res/layout-sw720dp/longpress_cling.xml22
-rw-r--r--res/layout/longpress_cling_content.xml14
-rw-r--r--res/layout/longpress_cling_welcome_content.xml21
-rw-r--r--res/values/attrs.xml7
13 files changed, 67 insertions, 81 deletions
diff --git a/res/drawable-hdpi/cling_bg.9.png b/res/drawable-hdpi/cling_bg.9.png
new file mode 100644
index 000000000..e173ba595
--- /dev/null
+++ b/res/drawable-hdpi/cling_bg.9.png
Binary files differ
diff --git a/res/drawable-mdpi/cling_bg.9.png b/res/drawable-mdpi/cling_bg.9.png
new file mode 100644
index 000000000..fc49c891c
--- /dev/null
+++ b/res/drawable-mdpi/cling_bg.9.png
Binary files differ
diff --git a/res/drawable-xhdpi/cling_bg.9.png b/res/drawable-xhdpi/cling_bg.9.png
new file mode 100644
index 000000000..4db356f25
--- /dev/null
+++ b/res/drawable-xhdpi/cling_bg.9.png
Binary files differ
diff --git a/res/drawable-xxhdpi/cling_bg.9.png b/res/drawable-xxhdpi/cling_bg.9.png
new file mode 100644
index 000000000..dc9f69ae9
--- /dev/null
+++ b/res/drawable-xxhdpi/cling_bg.9.png
Binary files differ
diff --git a/res/layout-land/longpress_cling.xml b/res/layout-land/longpress_cling.xml
index ffae0bead..d1b30a822 100644
--- a/res/layout-land/longpress_cling.xml
+++ b/res/layout-land/longpress_cling.xml
@@ -1,22 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:id="@+id/longpress_cling"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
- <com.android.launcher3.ClearCircleLayout
- android:id="@+id/cling_longpress_hole"
+ <Space
android:layout_width="match_parent"
- android:layout_height="match_parent"
- launcher:holeLocation="page_indicator" />
+ android:layout_height="0dp"
+ android:layout_weight="1" />
<FrameLayout
android:id="@+id/cling_content"
android:layout_width="360dp"
android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:background="#FF009688"
- android:elevation="6dp" />
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/cling_bg" />
-</FrameLayout> \ No newline at end of file
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="2" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout-land/migration_cling.xml b/res/layout-land/migration_cling.xml
index cc446fb68..4765524f3 100644
--- a/res/layout-land/migration_cling.xml
+++ b/res/layout-land/migration_cling.xml
@@ -58,7 +58,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:fontFamily="sans-serif-condensed"
+ android:fontFamily="sans-serif-medium"
android:text="@string/migration_cling_title"
android:textColor="#E1000000"
android:textSize="20sp" />
@@ -68,7 +68,7 @@
android:layout_height="wrap_content"
android:paddingBottom="24dp"
android:text="@string/migration_cling_description"
- android:textColor="#E1000000"
+ android:textColor="#99000000"
android:textSize="16sp" />
<LinearLayout
@@ -76,23 +76,23 @@
android:layout_height="wrap_content" >
<Button
+ android:id="@+id/cling_dismiss_migration_copy_apps"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:fontFamily="sans-serif-condensed"
- android:id="@+id/cling_dismiss_migration_copy_apps"
+ android:fontFamily="sans-serif-medium"
android:text="@string/migration_cling_copy_apps"
android:textColor="#FFFFFFFF"
android:textSize="14sp" />
<Button
+ android:id="@+id/cling_dismiss_migration_use_default"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:fontFamily="sans-serif-condensed"
- android:id="@+id/cling_dismiss_migration_use_default"
+ android:fontFamily="sans-serif-medium"
android:text="@string/migration_cling_use_default"
android:textColor="#deFFFFFF"
android:textSize="14sp" />
diff --git a/res/layout-port/longpress_cling.xml b/res/layout-port/longpress_cling.xml
index ec0321f5e..d0f1ab712 100644
--- a/res/layout-port/longpress_cling.xml
+++ b/res/layout-port/longpress_cling.xml
@@ -5,19 +5,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent" >
- <com.android.launcher3.ClearCircleLayout
- android:id="@+id/cling_longpress_hole"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- launcher:holeLocation="center_screen" />
-
<FrameLayout
android:id="@+id/cling_content"
- android:layout_width="360dp"
+ android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_gravity="bottom"
- android:background="#FF009688"
- android:elevation="6dp"
- android:tag="slide_from_bottom" />
+ android:layout_gravity="top"
+ android:background="@drawable/cling_bg"
+ android:tag="crop_bg_top_and_sides" />
</FrameLayout> \ No newline at end of file
diff --git a/res/layout-port/migration_cling.xml b/res/layout-port/migration_cling.xml
index 5251e7bf6..932a9f4dd 100644
--- a/res/layout-port/migration_cling.xml
+++ b/res/layout-port/migration_cling.xml
@@ -60,7 +60,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:fontFamily="sans-serif-condensed"
+ android:fontFamily="sans-serif-medium"
android:text="@string/migration_cling_title"
android:textColor="#E1000000"
android:textSize="20sp" />
@@ -70,7 +70,7 @@
android:layout_height="wrap_content"
android:paddingBottom="24dp"
android:text="@string/migration_cling_description"
- android:textColor="#E1000000"
+ android:textColor="#99000000"
android:textSize="16sp" />
<LinearLayout
@@ -83,7 +83,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:fontFamily="sans-serif-condensed"
+ android:fontFamily="sans-serif-medium"
android:text="@string/migration_cling_copy_apps"
android:textColor="#FFFFFFFF"
android:textSize="14sp" />
@@ -94,7 +94,7 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:fontFamily="sans-serif-condensed"
+ android:fontFamily="sans-serif-medium"
android:text="@string/migration_cling_use_default"
android:textColor="#deFFFFFF"
android:textSize="14sp" />
diff --git a/res/layout-sw600dp-port/longpress_cling.xml b/res/layout-sw600dp-port/longpress_cling.xml
index 4b4cf9109..090adc58a 100644
--- a/res/layout-sw600dp-port/longpress_cling.xml
+++ b/res/layout-sw600dp-port/longpress_cling.xml
@@ -1,23 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
android:id="@+id/longpress_cling"
android:layout_width="match_parent"
- android:layout_height="match_parent" >
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
- <com.android.launcher3.ClearCircleLayout
- android:id="@+id/cling_longpress_hole"
+ <Space
android:layout_width="match_parent"
- android:layout_height="match_parent"
- launcher:holeLocation="center_screen" />
+ android:layout_height="0dp"
+ android:layout_weight="1" />
<FrameLayout
android:id="@+id/cling_content"
android:layout_width="360dp"
android:layout_height="wrap_content"
- android:layout_gravity="center_horizontal|top"
- android:background="#FF009688"
- android:elevation="6dp"
- android:tag="slide_from_top" />
+ android:layout_gravity="center_horizontal"
+ android:background="@drawable/cling_bg" />
-</FrameLayout> \ No newline at end of file
+ <Space
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="3" />
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout-sw720dp/longpress_cling.xml b/res/layout-sw720dp/longpress_cling.xml
deleted file mode 100644
index ffae0bead..000000000
--- a/res/layout-sw720dp/longpress_cling.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:launcher="http://schemas.android.com/apk/res-auto/com.android.launcher3"
- android:id="@+id/longpress_cling"
- android:layout_width="match_parent"
- android:layout_height="match_parent" >
-
- <com.android.launcher3.ClearCircleLayout
- android:id="@+id/cling_longpress_hole"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- launcher:holeLocation="page_indicator" />
-
- <FrameLayout
- android:id="@+id/cling_content"
- android:layout_width="360dp"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:background="#FF009688"
- android:elevation="6dp" />
-
-</FrameLayout> \ No newline at end of file
diff --git a/res/layout/longpress_cling_content.xml b/res/layout/longpress_cling_content.xml
index 16bb49357..47a8e9797 100644
--- a/res/layout/longpress_cling_content.xml
+++ b/res/layout/longpress_cling_content.xml
@@ -3,11 +3,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:padding="48dp" >
+ android:paddingBottom="24dp"
+ android:paddingTop="36dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:paddingLeft="36dp"
+ android:paddingRight="36dp"
android:text="@string/workspace_cling_longpress_title"
android:textColor="#E1000000"
android:textSize="24sp" />
@@ -16,8 +19,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
+ android:paddingLeft="36dp"
+ android:paddingRight="36dp"
android:text="@string/workspace_cling_longpress_description"
- android:textColor="#E1000000"
+ android:textColor="#99000000"
android:textSize="16sp" />
<Button
@@ -26,8 +31,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
- android:layout_marginTop="24dp"
- android:fontFamily="sans-serif-condensed"
+ android:layout_marginRight="12dp"
+ android:layout_marginTop="27dp"
+ android:fontFamily="sans-serif-medium"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:text="@string/workspace_cling_longpress_dismiss"
diff --git a/res/layout/longpress_cling_welcome_content.xml b/res/layout/longpress_cling_welcome_content.xml
index 4b3410b5e..dd4f8d767 100644
--- a/res/layout/longpress_cling_welcome_content.xml
+++ b/res/layout/longpress_cling_welcome_content.xml
@@ -3,12 +3,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
- android:padding="48dp" >
+ android:paddingBottom="24dp"
+ android:paddingTop="36dp" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingBottom="16dp"
+ android:layout_marginBottom="8dp"
+ android:paddingLeft="36dp"
+ android:paddingRight="36dp"
android:text="@string/first_run_cling_title"
android:textColor="#E1000000"
android:textSize="34sp" />
@@ -16,7 +19,10 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:fontFamily="sans-serif-condensed"
+ android:layout_marginBottom="5.3dp"
+ android:fontFamily="sans-serif-medium"
+ android:paddingLeft="36dp"
+ android:paddingRight="36dp"
android:text="@string/workspace_cling_longpress_title"
android:textColor="#E1000000"
android:textSize="20sp" />
@@ -24,8 +30,10 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
+ android:paddingLeft="36dp"
+ android:paddingRight="36dp"
android:text="@string/workspace_cling_longpress_description"
- android:textColor="#E1000000"
+ android:textColor="#99000000"
android:textSize="16sp" />
<Button
@@ -34,8 +42,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="end"
- android:layout_marginTop="24dp"
- android:fontFamily="sans-serif-condensed"
+ android:layout_marginRight="12dp"
+ android:layout_marginTop="27dp"
+ android:fontFamily="sans-serif-medium"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:text="@string/workspace_cling_longpress_dismiss"
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index a2bdafcd8..c9743995a 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -25,13 +25,6 @@
<attr name="sourceViewId" format="integer" />
</declare-styleable>
- <!-- ClearCircleLayout specific attributes. These attributes are used to customize
- the cling in XML files. -->
- <declare-styleable name="ClearCircleLayout">
- <!-- Used to identify how to draw the cling bg -->
- <attr name="holeLocation" format="string" />
- </declare-styleable>
-
<!-- Page Indicator specific attributes. -->
<declare-styleable name="PageIndicator">
<attr name="windowSize" format="integer" />