public static final class AccessibilityNodeInfo.CollectionInfo extends Object
obtain(int, int, boolean)
to get an instance.
A collection of items has rows and columns and may be hierarchical. For example, a horizontal list is a collection with one column, as many rows as the list items, and is not hierarchical; A table is a collection with several rows, several columns, and is not hierarchical; A vertical tree is a hierarchical collection with one column and as many rows as the first level children.
Modifier and Type | Field and Description |
---|---|
static int |
SELECTION_MODE_MULTIPLE
Selection mode where multiple items may be selected.
|
static int |
SELECTION_MODE_NONE
Selection mode where items are not selectable.
|
static int |
SELECTION_MODE_SINGLE
Selection mode where a single item may be selected.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Gets the number of columns.
|
int |
getRowCount()
Gets the number of rows.
|
int |
getSelectionMode()
Gets the collection's selection mode.
|
boolean |
isHierarchical()
Gets if the collection is a hierarchically ordered.
|
static AccessibilityNodeInfo.CollectionInfo |
obtain(AccessibilityNodeInfo.CollectionInfo other)
Obtains a pooled instance that is a clone of another one.
|
static AccessibilityNodeInfo.CollectionInfo |
obtain(int rowCount,
int columnCount,
boolean hierarchical)
Obtains a pooled instance.
|
static AccessibilityNodeInfo.CollectionInfo |
obtain(int rowCount,
int columnCount,
boolean hierarchical,
int selectionMode)
Obtains a pooled instance.
|
public static final int SELECTION_MODE_NONE
public static final int SELECTION_MODE_SINGLE
public static final int SELECTION_MODE_MULTIPLE
public static AccessibilityNodeInfo.CollectionInfo obtain(AccessibilityNodeInfo.CollectionInfo other)
other
- The instance to clone.public static AccessibilityNodeInfo.CollectionInfo obtain(int rowCount, int columnCount, boolean hierarchical)
rowCount
- The number of rows.columnCount
- The number of columns.hierarchical
- Whether the collection is hierarchical.public static AccessibilityNodeInfo.CollectionInfo obtain(int rowCount, int columnCount, boolean hierarchical, int selectionMode)
rowCount
- The number of rows.columnCount
- The number of columns.hierarchical
- Whether the collection is hierarchical.selectionMode
- The collection's selection mode, one of:
public int getRowCount()
public int getColumnCount()
public boolean isHierarchical()
public int getSelectionMode()