Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

AccessibilityNodeInfo.CollectionInfo

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

Class Overview

Class with information if a node is a collection. Use 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.

Summary

Public Methods
int getColumnCount ()
Gets the number of columns.
int getRowCount ()
Gets the number of rows.
boolean isHierarchical ()
Gets if the collection is a hierarchically ordered.
static AccessibilityNodeInfo.CollectionInfo obtain (int rowCount, int columnCount, boolean hierarchical)
Obtains a pooled instance.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public int getColumnCount ()

Gets the number of columns.

Returns
  • The column count.

public int getRowCount ()

Gets the number of rows.

Returns
  • The row count.

public boolean isHierarchical ()

Gets if the collection is a hierarchically ordered.

Returns
  • Whether the collection is hierarchical.

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

Obtains a pooled instance.

Parameters
rowCount The number of rows.
columnCount The number of columns.
hierarchical Whether the collection is hierarchical.