AccessibilityNodeInfoCompat.CollectionInfoCompat

public class AccessibilityNodeInfoCompat.CollectionInfoCompat


Class with information if a node is a collection.

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.

Summary

Constants

static final int

Selection mode where multiple items may be selected.

static final int

Selection mode where items are not selectable.

static final int

Selection mode where a single item may be selected.

Public constructors

Public methods

int

Gets the number of columns.

int

Gets the number of rows.

int

Gets the collection's selection mode.

boolean

Gets if the collection is a hierarchically ordered.

static AccessibilityNodeInfoCompat.CollectionInfoCompat
obtain(
    int rowCount,
    int columnCount,
    boolean hierarchical,
    int selectionMode
)

Returns a cached instance if such is available otherwise a new one.

static AccessibilityNodeInfoCompat.CollectionInfoCompat
obtain(int rowCount, int columnCount, boolean hierarchical)

Returns a cached instance if such is available otherwise a new one.

Constants

SELECTION_MODE_MULTIPLE

public static final int SELECTION_MODE_MULTIPLE

Selection mode where multiple items may be selected.

SELECTION_MODE_NONE

public static final int SELECTION_MODE_NONE

Selection mode where items are not selectable.

SELECTION_MODE_SINGLE

public static final int SELECTION_MODE_SINGLE

Selection mode where a single item may be selected.

Public constructors

CollectionInfoCompat

public final CollectionInfoCompat()

Public methods

getColumnCount

public int getColumnCount()

Gets the number of columns.

Returns