Merge "DO NOT MERGE Add content descriptions for workspace cells." into jb-dev

This commit is contained in:
Michael Jurka
2012-05-07 17:34:44 -07:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 1 deletions
+4 -1
View File
@@ -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] -->
+2
View File
@@ -442,6 +442,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