OSDN Git Service

Adding APIs to enable apps to influence accessibility traversal.
authorSvetoslav <svetoslavganov@google.com>
Fri, 10 Oct 2014 01:40:56 +0000 (18:40 -0700)
committerSvetoslav <svetoslavganov@google.com>
Thu, 30 Oct 2014 23:55:53 +0000 (16:55 -0700)
commit6c70290ff0b20329c8f173d5c3423eb83ddc46f1
tree87a40e17c6d5224de8370f74dd13d79a350048f5
parentc1c86151b033a2c866c10970553b567dfb359ba9
Adding APIs to enable apps to influence accessibility traversal.

Accessibility focus is a token that can be put on any view and is
entirely controlled by accessibility services which decide whether
to put accessibility focus on a given view and what the traversal
strategy is.

Currently accessibility service use the view tree structure for
traversal which does not always reflect the logical order and the
user experience is sub-optimal. In such cases apps should be able
to influence how they are traversed for accessibility.

This change adds the notion of an accessibilty traversal order.
If a view has next in the traversal, an accessibility service has
to traverse the content of this view before traversing the content
next one.

This change will enable accessibility service to move away from
using the view tree and use spatial location of the content while
app developers can also influence the treversal order.

bug:17319923

Change-Id: Ib67ae4577f30b2c96575c71538dc1afdea08bfd3
api/current.txt
core/java/android/view/View.java
core/java/android/view/accessibility/AccessibilityNodeInfo.java
core/java/android/widget/RemoteViews.java
core/res/res/values/attrs.xml
core/res/res/values/public.xml