{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

CollectionInfo

public final class CollectionInfo


Information about the collection.

A collection of items has rowCount rows and columnCount columns. For example, a vertical list is a collection with one column, as many rows as the list items that are important for accessibility; A table is a collection with several rows and several columns.

Summary

Public constructors

CollectionInfo(int rowCount, int columnCount)

Public methods

final int

the number of columns in the collection, or -1 if unknown

final int

the number of rows in the collection, or -1 if unknown

Public constructors

CollectionInfo

public CollectionInfo(int rowCount, int columnCount)
Parameters
int rowCount

the number of rows in the collection, or -1 if unknown

int columnCount

the number of columns in the collection, or -1 if unknown

Public methods

getColumnCount

public final int getColumnCount()

the number of columns in the collection, or -1 if unknown

getRowCount

public final int getRowCount()

the number of rows in the collection, or -1 if unknown