summaryrefslogtreecommitdiffstats
path: root/core/res
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-05-29 15:46:15 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-29 15:46:15 -0700
commitbb1b7cf66bc17165b656c2aaed8027f9e5992306 (patch)
tree4845fc35695f062e2c7ac3561c28ddd5ab3b867b /core/res
parent82b3b1bce9665a68b32ab0d7393ea63425677f70 (diff)
parentf9817f7a3b4463f75a4cd9c4050bb89525476a9f (diff)
downloadframeworks_base-bb1b7cf66bc17165b656c2aaed8027f9e5992306.zip
frameworks_base-bb1b7cf66bc17165b656c2aaed8027f9e5992306.tar.gz
frameworks_base-bb1b7cf66bc17165b656c2aaed8027f9e5992306.tar.bz2
Merge "Adding accessibility focusable attribute (hidden for now)." into jb-dev
Diffstat (limited to 'core/res')
-rwxr-xr-xcore/res/res/values/attrs.xml37
1 files changed, 36 insertions, 1 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml
index 2f540a5..e9a3385 100755
--- a/core/res/res/values/attrs.xml
+++ b/core/res/res/values/attrs.xml
@@ -2136,7 +2136,8 @@
query the screen. Note: While not recommended, an accessibility service may
decide to ignore this attribute and operate on all views in the view tree. -->
<attr name="importantForAccessibility" format="integer">
- <!-- The system determines whether the view is important for accessibility (recommended). -->
+ <!-- The system determines whether the view is important for accessibility - default
+ (recommended). -->
<enum name="auto" value="0" />
<!-- The view is important for accessibility. -->
<enum name="yes" value="1" />
@@ -2144,6 +2145,40 @@
<enum name="no" value="2" />
</attr>
+ <!-- @hide Controls whether this view can take accessibility focus. -->
+ <attr name="accessibilityFocusable" format="integer">
+ <!-- The system determines whether the view can take accessibility focus - default
+ (recommended).
+ <p>
+ Such a view is consideted by the focus search if it is:
+ <ul>
+ <li>
+ Important for accessibility and actionable (clickable, long clickable, focusable)
+ </li>
+ <li>
+ Important for accessibility, not actionable (clickable, long clickable, focusable),
+ and does not have an actionable predecessor.
+ </li>
+ </ul>
+ An accessibility srvice can request putting accessibility focus on such a view.
+ </p> -->
+ <enum name="auto" value="0" />
+ <!-- The view can take accessibility focus.
+ <p>
+ A view that can take accessibility focus is always considered during focus
+ search and an accessibility service can request putting accessibility focus
+ on it.
+ </p> -->
+ <enum name="yes" value="1" />
+ <!-- The view can not take accessibility focus.
+ <p>
+ A view that can not take accessibility focus is never considered during focus
+ search and an accessibility service can not request putting accessibility focus
+ on it.
+ </p> -->
+ <enum name="no" value="2" />
+ </attr>
+
</declare-styleable>
<!-- Attributes that can be used with a {@link android.view.ViewGroup} or any