summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-04-20 16:51:49 -0400
committerDaniel Sandler <dsandler@android.com>2010-04-21 13:38:46 -0400
commit97994f1b9bc9cb6cbf2fa303ea21f39351de1342 (patch)
treeba9834e8aedc15abdbd859538f189ed81f03acad /res
parent8a92fcc8395c9d922abc2e772ea28b7920e26521 (diff)
downloadProtips-97994f1b9bc9cb6cbf2fa303ea21f39351de1342.tar.gz
Reorganized tip strings so they can be more easily localized.
The previous structure made it difficult to provide coherent comments for translators. It was also unnecessarily difficult to add/remove tips. Added comments to all localizable strings. Also, removed two tips deemed to be overkill. This is now (hopefully) the final set of tips. Finally, store the current tip in SharedPreferences so that the widget doesn't always reset to tip 0 every time Launcher restarts (important on low-memory devices). Bug: 2559083 (tracking the overall feature) Change-Id: I86a29a4e8e1059e7fe2ff6792bbc4e3277951fa2
Diffstat (limited to 'res')
-rw-r--r--res/values/arrays.xml59
-rw-r--r--res/values/strings.xml5
2 files changed, 46 insertions, 18 deletions
diff --git a/res/values/arrays.xml b/res/values/arrays.xml
index 96a7041..8363059 100644
--- a/res/values/arrays.xml
+++ b/res/values/arrays.xml
@@ -1,23 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <string-array name="titles">
- <item>See all your apps.</item>
- <item>Add items to your Home screen.</item>
- <item>Rearrange your Home screen.</item>
- <item>Remove items.</item>
- <item>Multiple Home screens.</item>
- <item>See notifications.</item>
- <item>Configure your phone.</item>
- <item>Done with this widget?</item>
- </string-array>
+ <!-- Set of tips to show the user.
+
+ First line is the tip title, which is shown in bold on its own line.
+
+ All subsequent text is placed into the tip body.
+
+ The occurrence of @drawable/foo causes the bitmap drawable named "foo"
+ to be displayed to the right of the tip text.
+
+ Example for tip #1:
+ _____________________________________________ \_/
+ | | /._.\
+ | See all your apps. [all_apps.png] > U| |U
+ | Touch the Launcher icon. | |___|
+ |_____________________________________________| U U
+ -->
<string-array name="tips">
- <item>Touch the Launcher icon. @drawable/all_apps</item>
- <item>Touch &amp; hold an empty spot to add shortcuts or widgets.</item>
- <item>Touch &amp; hold an item and when it vibrates, drag it where you want.</item>
- <item>Touch &amp; hold an item and when it vibrates, drag it to the Trash icon. @drawable/trash</item>
- <item>Swipe left or right to switch. Drag items to other screens.</item>
- <item>Drag the Status bar down from the top of the screen.</item>
- <item>Press the Menu button and touch Settings.</item>
- <item>Touch &amp; hold it and when it vibrates, drag it to the Trash icon.</item>
+ <!-- Tip: Where the launcher icon is and what it does. With icon. -->
+ <item>See all your apps.\n
+ Touch the Launcher icon. @drawable/all_apps</item>
+
+ <!-- Tip: Longpress to add icons/widgets to the workspace. -->
+ <item>Add items to your Home screen.\n
+ Touch &amp; hold an empty spot to add shortcuts or widgets.</item>
+
+ <!-- Tip: Longpress to move icons/widgets around. -->
+ <item>Rearrange your Home screen.\n
+ Touch &amp; hold an item and when it vibrates, drag it where you want.</item>
+
+ <!-- Tip: Longpress icons/widgets and drag to trash to remove them. -->
+ <item>Remove items.\n
+ Touch &amp; hold an item and when it vibrates, drag it to the Trash icon. @drawable/trash</item>
+
+ <!-- Tip: Swipe to switch workspaces; drag items to move them to other
+ workspaces. -->
+ <item>Multiple Home screens.\n
+ Swipe left or right to switch. Drag items to other screens.</item>
+
+ <!-- Tip: Reminder about how to delete widgets, reinforcing that this
+ technique can be used to remove the tips widget iteself. -->
+ <item>Done with this widget?\n
+ Touch &amp; hold it and when it vibrates, drag it to the Trash icon.</item>
</string-array>
</resources>
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 479f6a3..e56dfe4 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -15,6 +15,11 @@
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+ <!-- Name of tips widget (shown in Launcher "add widget" list) -->
<string name="widget_name">Home screen tips</string>
+ <!-- Format string for the footer of the tip bubble. Substitutions:
+ %1$d - the number of the current tip
+ %2$d - the total number of tips
+ -->
<string name="pager_footer"><xliff:g id="curPage" example="1">%1$d</xliff:g> of <xliff:g id="numPages" example="2">%2$d</xliff:g></string>
</resources>