diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-04-19 23:01:39 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2012-04-20 15:12:13 -0700 |
commit | aa780c110922148a6a4ba06734bb2b0bb8c98f93 (patch) | |
tree | 8709da20df481fea35219769285546802407ca9f /core/res | |
parent | fefd20e927b7252d63acb7bb1852c5188e3c1b2e (diff) | |
download | frameworks_base-aa780c110922148a6a4ba06734bb2b0bb8c98f93.zip frameworks_base-aa780c110922148a6a4ba06734bb2b0bb8c98f93.tar.gz frameworks_base-aa780c110922148a6a4ba06734bb2b0bb8c98f93.tar.bz2 |
Adding support for traversing the content of a node info at granularity.
1. A view that creates an accessibility node info may add to the info
a list of granularity labels. These are granularities by which the
source view can iterate over its content. For example a text view
may support character, word link while a web view may additionally
support buttons, tables, etc. There are actions on accessibility
node info to go to the next/previous at a given granularity which
is passesed as an argument.
2. Added Bundle argument to the APIs for performing accessibility
actions. This is generic and extensible.
bug:5932640
Change-Id: I328cbbb4cddfdee082ab2a8b7ff1bd7477d8d6f9
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/values/public.xml | 4 | ||||
-rwxr-xr-x | core/res/res/values/strings.xml | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 3f8036b..a730770 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -865,6 +865,10 @@ <java-symbol type="string" name="yesterday" /> <java-symbol type="string" name="imei" /> <java-symbol type="string" name="meid" /> + <java-symbol type="string" name="granularity_label_character" /> + <java-symbol type="string" name="granularity_label_word" /> + <java-symbol type="string" name="granularity_label_link" /> + <java-symbol type="string" name="granularity_label_line" /> <java-symbol type="plurals" name="abbrev_in_num_days" /> <java-symbol type="plurals" name="abbrev_in_num_hours" /> diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 149a78c..04866b9 100755 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -2027,6 +2027,15 @@ <!-- Label for ALT modifier key. Must be short to fit on key! --> <string name="password_keyboard_label_alt_key">ALT</string> + <!-- Label for granularity to traverse the content on an AccessibilityNodeInfo by character. Only spoken to the user. [CHAR LIMIT=NONE] --> + <string name="granularity_label_character">character</string> + <!-- Label for granularity to traverse the content on an AccessibilityNodeInfo by word. Only spoken to the user. [CHAR LIMIT=NONE] --> + <string name="granularity_label_word">word</string> + <!-- Label for granularity to traverse the content on an AccessibilityNodeInfo by link. Only spoken to the user. [CHAR LIMIT=NONE] --> + <string name="granularity_label_link">link</string> + <!-- Label for granularity to traverse the content on an AccessibilityNodeInfo by line. Only spoken to the user. [CHAR LIMIT=NONE] --> + <string name="granularity_label_line">line</string> + <!-- A format string for 12-hour time of day, just the hour, not the minute, with lower-case "am" or "pm" (example: "3pm"). --> <string name="hour_ampm">"<xliff:g id="hour" example="3">%-l</xliff:g><xliff:g id="ampm" example="pm">%P</xliff:g>"</string> |