diff options
author | alanv <alanv@google.com> | 2012-05-03 16:24:33 -0700 |
---|---|---|
committer | alanv <alanv@google.com> | 2012-05-03 16:24:33 -0700 |
commit | ecc7e6e26e2e7464c4a413b713dde3ce0e28922f (patch) | |
tree | 96a66d786577057a5c8b7089a35fb75ff9038137 | |
parent | 5e5fa1515a83e87f47c42891a9d2f6ae4970b3f0 (diff) | |
download | packages_apps_Trebuchet-ecc7e6e26e2e7464c4a413b713dde3ce0e28922f.tar.gz packages_apps_Trebuchet-ecc7e6e26e2e7464c4a413b713dde3ce0e28922f.tar.bz2 packages_apps_Trebuchet-ecc7e6e26e2e7464c4a413b713dde3ce0e28922f.zip |
Add content descriptions for workspace cells.
Bug: 6441414
Change-Id: Iba57fb25c4c7e57a04b45ca60923edd9158228aa
-rw-r--r-- | res/values/strings.xml | 5 | ||||
-rw-r--r-- | src/com/android/launcher2/Workspace.java | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index d9fbba253..1416d40e9 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -213,10 +213,13 @@ s --> <!-- Accessibility --> <skip /> + <!-- The format string for Workspace descriptions [CHAR_LIMIT=none] --> + <string name="workspace_description_format">Home screen %1$d</string> + <!-- The format string for default page scroll text [CHAR_LIMIT=none] --> <string name="default_scroll_format">Page %1$d of %2$d</string> <!-- The format string for Workspace page scroll text [CHAR_LIMIT=none] --> - <string name="workspace_scroll_format">Workspace %1$d of %2$d</string> + <string name="workspace_scroll_format">Home screen %1$d of %2$d</string> <!-- The format string for AppsCustomize Apps page scroll text [CHAR_LIMIT=none] --> <string name="apps_customize_apps_scroll_format">Apps page %1$d of %2$d</string> <!-- The format string for AppsCustomize Apps page scroll text [CHAR_LIMIT=none] --> diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java index ec18fb3e3..926cc1d57 100644 --- a/src/com/android/launcher2/Workspace.java +++ b/src/com/android/launcher2/Workspace.java @@ -432,6 +432,8 @@ public class Workspace extends SmoothPagedView cl.setOnInterceptTouchListener(this); cl.setClickable(true); cl.enableHardwareLayers(); + cl.setContentDescription(getContext().getString( + R.string.workspace_description_format, getChildCount())); } @Override |