java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityNodeProviderCompat |
Helper for accessing
AccessibilityNodeProvider
introduced after API level 4 in a backwards compatible fashion.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Creates a new instance.
|
||||||||||
|
Creates a new instance wrapping an
AccessibilityNodeProvider
.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Returns an
AccessibilityNodeInfoCompat
representing a virtual view,
i.e.
|
||||||||||
|
Finds
AccessibilityNodeInfoCompat
s by text.
|
||||||||||
|
Find the virtual view, i.e.
|
||||||||||
|
|
||||||||||
|
Performs an accessibility action on a virtual view, i.e.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new instance.
Creates a new instance wrapping an
AccessibilityNodeProvider
.
provider | The provider. |
---|
Returns an
AccessibilityNodeInfoCompat
representing a virtual view,
i.e. a descendant of the host View, with the given
virtualViewId
or the host View itself if
virtualViewId
equals to
NO_ID
.
A virtual descendant is an imaginary View that is reported as a part of the view hierarchy for accessibility purposes. This enables custom views that draw complex content to report them selves as a tree of virtual views, thus conveying their logical structure.
The implementer is responsible for obtaining an accessibility node info from the pool of reusable instances and setting the desired properties of the node info before returning it.
virtualViewId | A client defined virtual view id. |
---|
AccessibilityNodeInfoCompat
for a virtual descendant
or the host View.
Finds
AccessibilityNodeInfoCompat
s by text. The match is case insensitive
containment. The search is relative to the virtual view, i.e. a descendant of the
host View, with the given
virtualViewId
or the host View itself
virtualViewId
equals to
NO_ID
.
text | The searched text. |
---|---|
virtualViewId | A client defined virtual view id which defined the root of the tree in which to perform the search. |
Find the virtual view, i.e. a descendant of the host View, that has the specified focus type.
focus |
The focus to find. One of
FOCUS_INPUT
or
FOCUS_ACCESSIBILITY
.
|
---|
Performs an accessibility action on a virtual view, i.e. a descendant of the
host View, with the given
virtualViewId
or the host View itself
if
virtualViewId
equals to
NO_ID
.
virtualViewId | A client defined virtual view id. |
---|---|
action | The action to perform. |
arguments | Optional arguments. |