Most visited

Recently visited

Added in API level 19

AccessibilityNodeInfo.CollectionItemInfo

public static final class AccessibilityNodeInfo.CollectionItemInfo
extends Object

java.lang.Object
   ↳ android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo


如果节点是集合项目,则包含信息类别。 使用obtain(int, int, int, int, boolean)来获取实例。

集合项目包含在集合中,它开始于集合中给定的行和列,并跨越一个或多个行和列。 例如,两个相关表列的标题从第一行开始,第一列跨越一行和两列。

Summary

Public methods

int getColumnIndex()

获取项目所在的列索引。

int getColumnSpan()

获取项目跨越的列数。

int getRowIndex()

获取项目所在的行索引。

int getRowSpan()

获取项目跨越的行数。

boolean isHeading()

获取收集项目是否为标题。

boolean isSelected()

获取是否选择了收集项目。

static AccessibilityNodeInfo.CollectionItemInfo obtain(int rowIndex, int rowSpan, int columnIndex, int columnSpan, boolean heading)

获取一个合并实例。

static AccessibilityNodeInfo.CollectionItemInfo obtain(int rowIndex, int rowSpan, int columnIndex, int columnSpan, boolean heading, boolean selected)

获取一个合并实例。

Inherited methods

From class java.lang.Object

Public methods

getColumnIndex

Added in API level 19
int getColumnIndex ()

获取项目所在的列索引。

Returns
int The column index.

getColumnSpan

Added in API level 19
int getColumnSpan ()

获取项目跨越的列数。

Returns
int The column span.

getRowIndex

Added in API level 19
int getRowIndex ()

获取项目所在的行索引。

Returns
int The row index.

getRowSpan

Added in API level 19
int getRowSpan ()

获取项目跨越的行数。

Returns
int The row span.

isHeading

Added in API level 19
boolean isHeading ()

获取收集项目是否为标题。 例如,部分标题,表格标题等

Returns
boolean If the item is a heading.

isSelected

Added in API level 21
boolean isSelected ()

获取是否选择了收集项目。

Returns
boolean If the item is selected.

obtain

Added in API level 19
AccessibilityNodeInfo.CollectionItemInfo obtain (int rowIndex, 
                int rowSpan, 
                int columnIndex, 
                int columnSpan, 
                boolean heading)

获取一个合并实例。

Parameters
rowIndex int: The row index at which the item is located.
rowSpan int: The number of rows the item spans.
columnIndex int: The column index at which the item is located.
columnSpan int: The number of columns the item spans.
heading boolean: Whether the item is a heading.
Returns
AccessibilityNodeInfo.CollectionItemInfo

obtain

Added in API level 21
AccessibilityNodeInfo.CollectionItemInfo obtain (int rowIndex, 
                int rowSpan, 
                int columnIndex, 
                int columnSpan, 
                boolean heading, 
                boolean selected)

获取一个合并实例。

Parameters
rowIndex int: The row index at which the item is located.
rowSpan int: The number of rows the item spans.
columnIndex int: The column index at which the item is located.
columnSpan int: The number of columns the item spans.
heading boolean: Whether the item is a heading.
selected boolean: Whether the item is selected.
Returns
AccessibilityNodeInfo.CollectionItemInfo

Hooray!