Most visited

Recently visited

Added in API level 19

AccessibilityNodeInfo.CollectionInfo

public static final class AccessibilityNodeInfo.CollectionInfo
extends Object

java.lang.Object
    android.view.accessibility.AccessibilityNodeInfo.CollectionInfo


如果一个节点是一个集合,则带有信息的类。 使用obtain(int, int, boolean)来获取实例。

项目集合具有行和列,并且可以是分层的。 例如,水平列表是具有一列的集合,与列表项目一样多的行,并且不是分层的; 表格是一个包含多行,多列的集合,并且不是分层的; 一个垂直树是一个层次集合,其中一列和多个行与第一级子元素一样多。

摘要(Summary)

常量(Constants)

int SELECTION_MODE_MULTIPLE

可以选择多个项目的选择模式。

int SELECTION_MODE_NONE

项目不可选择的选择模式。

int SELECTION_MODE_SINGLE

可以选择单个项目的选择模式。

公共方法(Public methods)

int getColumnCount()

获取列数。

int getRowCount()

获取行数。

int getSelectionMode()

获取集合的选择模式。

boolean isHierarchical()

获取集合是否是分级排序的。

static AccessibilityNodeInfo.CollectionInfo obtain(int rowCount, int columnCount, boolean hierarchical, int selectionMode)

获取一个合并实例。

static AccessibilityNodeInfo.CollectionInfo obtain(int rowCount, int columnCount, boolean hierarchical)

获取一个合并实例。

继承方法(Inherited methods)

From class java.lang.Object

常量(Constants)

SELECTION_MODE_MULTIPLE

Added in API level 21
int SELECTION_MODE_MULTIPLE

可以选择多个项目的选择模式。

常量值:2(0x00000002)

SELECTION_MODE_NONE

Added in API level 21
int SELECTION_MODE_NONE

项目不可选择的选择模式。

常量值:0(0x00000000)

SELECTION_MODE_SINGLE

Added in API level 21
int SELECTION_MODE_SINGLE

可以选择单个项目的选择模式。

常数值:1(0x00000001)

公共方法(Public methods)

getColumnCount

Added in API level 19
int getColumnCount ()

获取列数。

返回(Returns)
int The column count.

getRowCount

Added in API level 19
int getRowCount ()

获取行数。

返回(Returns)
int The row count.

getSelectionMode

Added in API level 21
int getSelectionMode ()

获取集合的选择模式。

返回(Returns)
int The collection's selection mode, one of:

isHierarchical

Added in API level 19
boolean isHierarchical ()

获取集合是否是分级排序的。

返回(Returns)
boolean Whether the collection is hierarchical.

obtain

Added in API level 21
AccessibilityNodeInfo.CollectionInfo obtain (int rowCount, 
                int columnCount, 
                boolean hierarchical, 
                int selectionMode)

获取一个合并实例。

参数(Parameters)
rowCount int: The number of rows.
columnCount int: The number of columns.
hierarchical boolean: Whether the collection is hierarchical.
selectionMode int: The collection's selection mode, one of:
返回(Returns)
AccessibilityNodeInfo.CollectionInfo

obtain

Added in API level 19
AccessibilityNodeInfo.CollectionInfo obtain (int rowCount, 
                int columnCount, 
                boolean hierarchical)

获取一个合并实例。

参数(Parameters)
rowCount int: The number of rows.
columnCount int: The number of columns.
hierarchical boolean: Whether the collection is hierarchical.
返回(Returns)
AccessibilityNodeInfo.CollectionInfo

Hooray!