summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-08-22 21:25:46 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-22 21:25:46 -0700
commitdbb654992673d8d1236d06a647c08b4b2c5e3103 (patch)
tree540bac9fe909b8ec8848a20b6f6b45cf6a86d524 /res/values
parenta0140c63f43a5064af7fe012247e62e588bba0b4 (diff)
parent82f5553a137f0a25f7333a6fc9507c847b7a42ed (diff)
downloadandroid_packages_apps_Trebuchet-dbb654992673d8d1236d06a647c08b4b2c5e3103.tar.gz
android_packages_apps_Trebuchet-dbb654992673d8d1236d06a647c08b4b2c5e3103.tar.bz2
android_packages_apps_Trebuchet-dbb654992673d8d1236d06a647c08b4b2c5e3103.zip
Merge "Cling ALL the things! (Workspace and AllApps)"
Diffstat (limited to 'res/values')
-rw-r--r--res/values/attrs.xml7
-rw-r--r--res/values/colors.xml3
-rw-r--r--res/values/dimens.xml3
-rw-r--r--res/values/strings.xml16
-rw-r--r--res/values/styles.xml29
5 files changed, 58 insertions, 0 deletions
diff --git a/res/values/attrs.xml b/res/values/attrs.xml
index 43591035f..6c0bc1467 100644
--- a/res/values/attrs.xml
+++ b/res/values/attrs.xml
@@ -27,6 +27,13 @@
<skip />
+ <!-- Cling specific attributes. These attributes are used to customize
+ the cling in XML files. -->
+ <declare-styleable name="Cling">
+ <!-- Used to identify how to draw the cling bg -->
+ <attr name="drawIdentifier" format="string" />
+ </declare-styleable>
+
<!-- Workspace specific attributes. These attributes are used to customize
the workspace in XML files. -->
<declare-styleable name="Workspace">
diff --git a/res/values/colors.xml b/res/values/colors.xml
index ece0fd895..2389f8e4f 100644
--- a/res/values/colors.xml
+++ b/res/values/colors.xml
@@ -32,4 +32,7 @@
<color name="workspace_all_apps_and_delete_zone_text_color">#CCFFFFFF</color>
<color name="workspace_all_apps_and_delete_zone_text_shadow_color">#A0000000</color>
+
+ <color name="cling_button">#BA49C0EC</color>
+ <color name="cling_button_pressed">#FF49C0EC</color>
</resources>
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index a51642435..509b7f146 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -15,6 +15,9 @@
-->
<resources>
+<!-- Cling -->
+ <dimen name="clingPunchThroughGraphicCenterRadius">94dp</dimen>
+
<!-- Workspace -->
<dimen name="qsb_bar_height">40dp</dimen>
<dimen name="workspace_cell_width">80dp</dimen>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 871d7e973..a238eb489 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -231,4 +231,20 @@ s -->
<string name="apps_customize_apps_scroll_format" translatable="false">Apps page %1$d of %2$d</string>
<!-- The format string for AppsCustomize Apps page scroll text [CHAR_LIMIT=none] -->
<string name="apps_customize_widgets_scroll_format" translatable="false">Widgets page %1$d of %2$d</string>
+
+ <!-- Clings -->
+ <!-- The title text for the workspace cling [CHAR_LIMIT=none] -->
+ <string name="workspace_cling_title">Welcome Home!</string>
+ <!-- The description of how to pick up and move an item on the workspace [CHAR_LIMIT=none] -->
+ <string name="workspace_cling_move_item">To move an app or widget, touch &amp; hold, then reposition it.</string>
+ <!-- The description of how to open all apps from the workspace [CHAR_LIMIT=none] -->
+ <string name="workspace_cling_open_all_apps">To see all your apps, touch the All Apps button.</string>
+ <!-- The title text for the All Apps cling [CHAR_LIMIT=none] -->
+ <string name="all_apps_cling_title">Here are all your apps</string>
+ <!-- The description of how to pick up and add an item to the workspace [CHAR_LIMIT=none] -->
+ <string name="all_apps_cling_add_item">To add an app or widget to your home screen, touch &amp; hold, then position it.</string>
+
+ <!-- The text on the button to dismiss a cling [CHAR_LIMIT=none] -->
+ <string name="cling_dismiss">OK</string>
+
</resources>
diff --git a/res/values/styles.xml b/res/values/styles.xml
index be9b0fd2c..376d5c40c 100644
--- a/res/values/styles.xml
+++ b/res/values/styles.xml
@@ -25,6 +25,35 @@
<style name="Theme" parent="@android:style/Theme.Holo.Wallpaper.NoTitleBar">
</style>
+ <style name="ClingButton">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:paddingTop">14dp</item>
+ <item name="android:paddingBottom">14dp</item>
+ <item name="android:paddingLeft">58dp</item>
+ <item name="android:paddingRight">58dp</item>
+ <item name="android:text">@string/cling_dismiss</item>
+ <item name="android:textStyle">bold</item>
+ <item name="android:background">@drawable/cling_button_bg</item>
+ </style>
+ <style name="ClingTitleText">
+ <item name="android:layout_width">wrap_content</item>
+ <item name="android:layout_height">wrap_content</item>
+ <item name="android:textSize">28sp</item>
+ <item name="android:textColor">#49C0EC</item>
+ <item name="android:shadowColor">#000000</item>
+ <item name="android:shadowDy">2</item>
+ <item name="android:shadowRadius">2.0</item>
+ </style>
+ <style name="ClingText">
+ <item name="android:textSize">15sp</item>
+ <item name="android:textColor">#FFFFFF</item>
+ <item name="android:shadowColor">#000000</item>
+ <item name="android:shadowDy">2</item>
+ <item name="android:shadowRadius">2.0</item>
+ <item name="android:lineSpacingMultiplier">1.1</item>
+ </style>
+
<style name="WorkspaceIcon">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>