java.lang.Object | |
↳ | android.app.assist.AssistStructure.ViewNode |
Describes a single view in the assist data.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | TEXT_COLOR_UNDEFINED | Magic value for text color that has not been defined, which is very unlikely to be confused with a real text color. | |||||||||
int | TEXT_STYLE_BOLD | ||||||||||
int | TEXT_STYLE_ITALIC | ||||||||||
int | TEXT_STYLE_STRIKE_THRU | ||||||||||
int | TEXT_STYLE_UNDERLINE |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the alpha transformation of the view, used to reduce the overall opacity
of the view's contents, as set by
ViewStructure.setAlpha(float) .
| |||||||||||
Return a child of this node, given an index value from 0 to
getChildCount() -1.
| |||||||||||
Return the number of children this node has.
| |||||||||||
Returns the class name of the node's implementation, indicating its behavior.
| |||||||||||
Returns any content description associated with the node, which semantically describes
its purpose for accessibility and other uses.
| |||||||||||
Returns the visual elevation of the view, used for shadowing and other visual
characterstics, as set by
ViewStructure.setElevation(float) .
| |||||||||||
Return a Bundle containing optional vendor-specific extension information.
| |||||||||||
Returns the height of this view, in pixels.
| |||||||||||
Return additional hint text associated with the node; this is typically used with
a node that takes user input, describing to the user what the input means.
| |||||||||||
Returns the ID associated with this view, as per
View.getId() .
| |||||||||||
If
getId() is a resource identifier, this is the entry name of that
identifier.
| |||||||||||
If
getId() is a resource identifier, this is the package name of that
identifier.
| |||||||||||
If
getId() is a resource identifier, this is the type name of that
identifier.
| |||||||||||
Returns the left edge of this view, in pixels, relative to the left edge of its parent.
| |||||||||||
Returns the current X scroll offset of this view, as per
View.getScrollX() .
| |||||||||||
Returns the current Y scroll offset of this view, as per
View.getScrollY() .
| |||||||||||
Returns any text associated with the node that is displayed to the user, or null
if there is none.
| |||||||||||
If
getText() is non-null, this is the main text background color associated
with it.
| |||||||||||
If
getText() is non-null, this is the main text color associated with it.
| |||||||||||
Return per-line baselines into the text returned by
getText() .
| |||||||||||
Return per-line offsets into the text returned by
getText() .
| |||||||||||
If
getText() is non-null, this is where the current selection starts.
| |||||||||||
If
getText() is non-null, this is where the current selection starts.
| |||||||||||
If
getText() is non-null, this is the main text size (in pixels) associated
with it.
| |||||||||||
If
getText() is non-null, this is the main text style associated
with it, containing a bit mask of TEXT_STYLE_BOLD ,
TEXT_STYLE_BOLD , TEXT_STYLE_STRIKE_THRU , and/or
TEXT_STYLE_UNDERLINE .
| |||||||||||
Returns the top edge of this view, in pixels, relative to the top edge of its parent.
| |||||||||||
Returns the transformation that has been applied to this view, such as a translation
or scaling.
| |||||||||||
Returns the visibility mode of this view, as per
View.getVisibility() .
| |||||||||||
Returns the width of this view, in pixels.
| |||||||||||
Returns true if this node currently had accessibility focus at the time that the
structure was collected.
| |||||||||||
Returns true if this node has currently been activated by the user.
| |||||||||||
Returns true if assist data has been blocked starting at this node in the hierarchy.
| |||||||||||
Returns true if this node represents something that is checkable by the user.
| |||||||||||
Returns true if this node is currently in a checked state.
| |||||||||||
Returns true if this node is clickable by the user.
| |||||||||||
Returns true if this node is something the user can perform a context click on.
| |||||||||||
Returns true if this node is in an enabled state.
| |||||||||||
Returns true if this node can take input focus.
| |||||||||||
Returns true if this node currently had input focus at the time that the
structure was collected.
| |||||||||||
Returns true if this node is something the user can perform a long click/press on.
| |||||||||||
Returns true if this node has currently been selected by the user.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Magic value for text color that has not been defined, which is very unlikely to be confused with a real text color.
Returns the alpha transformation of the view, used to reduce the overall opacity
of the view's contents, as set by ViewStructure.setAlpha(float)
.
Return a child of this node, given an index value from 0 to
getChildCount()
-1.
Returns the class name of the node's implementation, indicating its behavior.
For example, a button will report "android.widget.Button" meaning it behaves
like a Button
.
Returns any content description associated with the node, which semantically describes its purpose for accessibility and other uses.
Returns the visual elevation of the view, used for shadowing and other visual
characterstics, as set by ViewStructure.setElevation(float)
.
Return a Bundle containing optional vendor-specific extension information.
Return additional hint text associated with the node; this is typically used with a node that takes user input, describing to the user what the input means.
Returns the ID associated with this view, as per View.getId()
.
If getId()
is a resource identifier, this is the entry name of that
identifier. See ViewStructure.setId
for more information.
If getId()
is a resource identifier, this is the package name of that
identifier. See ViewStructure.setId
for more information.
If getId()
is a resource identifier, this is the type name of that
identifier. See ViewStructure.setId
for more information.
Returns the left edge of this view, in pixels, relative to the left edge of its parent.
Returns the current X scroll offset of this view, as per
View.getScrollX()
.
Returns the current Y scroll offset of this view, as per
View.getScrollY()
.
Returns any text associated with the node that is displayed to the user, or null if there is none.
If getText()
is non-null, this is the main text background color associated
with it.
If there is no text background color, TEXT_COLOR_UNDEFINED
is returned.
Note that the text may also contain style spans that modify the color of specific
parts of the text.
If getText()
is non-null, this is the main text color associated with it.
If there is no text color, TEXT_COLOR_UNDEFINED
is returned.
Note that the text may also contain style spans that modify the color of specific
parts of the text.
Return per-line baselines into the text returned by getText()
. Each entry
in the array is a formatted line of text, and the value it contains is the baseline
where that text appears in the view. May return null if there is no line
information.
Return per-line offsets into the text returned by getText()
. Each entry
in the array is a formatted line of text, and the value it contains is the offset
into the text string where that line starts. May return null if there is no line
information.
If getText()
is non-null, this is where the current selection starts.
If there is no selection, returns the same value as getTextSelectionStart()
,
indicating the cursor position.
If getText()
is non-null, this is where the current selection starts.
If getText()
is non-null, this is the main text size (in pixels) associated
with it.
Note that the text may also contain style spans that modify the size of specific
parts of the text.
If getText()
is non-null, this is the main text style associated
with it, containing a bit mask of TEXT_STYLE_BOLD
,
TEXT_STYLE_BOLD
, TEXT_STYLE_STRIKE_THRU
, and/or
TEXT_STYLE_UNDERLINE
.
Note that the text may also contain style spans that modify the style of specific
parts of the text.
Returns the top edge of this view, in pixels, relative to the top edge of its parent.
Returns the transformation that has been applied to this view, such as a translation or scaling. The returned Matrix object is owned by ViewNode; do not modify it. Returns null if there is no transformation applied to the view.
Returns the visibility mode of this view, as per
View.getVisibility()
.
Returns true if this node currently had accessibility focus at the time that the structure was collected.
Returns true if this node has currently been activated by the user.
Returns true if assist data has been blocked starting at this node in the hierarchy.
Returns true if this node represents something that is checkable by the user.
Returns true if this node is currently in a checked state.
Returns true if this node is clickable by the user.
Returns true if this node is something the user can perform a context click on.
Returns true if this node currently had input focus at the time that the structure was collected.
Returns true if this node is something the user can perform a long click/press on.
Returns true if this node has currently been selected by the user.