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

CollectionItemInfo

public final class CollectionItemInfo


Information about the item of a collection.

A collection item is contained in a collection, it starts at a given rowIndex and columnIndex in the collection, and spans one or more rows and columns. For example, a header of two related table columns starts at the first row and the first column, spans one row and two columns.

Summary

Public constructors

CollectionItemInfo(
    int rowIndex,
    int rowSpan,
    int columnIndex,
    int columnSpan
)

Public methods

final int

the index of the column at which item is located

final int

the number of columns the item spans

final int

the index of the row at which item is located

final int

the number of rows the item spans

Public constructors

CollectionItemInfo

public CollectionItemInfo(
    int rowIndex,
    int rowSpan,
    int columnIndex,
    int columnSpan
)
Parameters
int rowIndex

the index of the row at which item is located

int rowSpan

the number of rows the item spans

int columnIndex

the index of the column at which item is located

int columnSpan

the number of columns the item spans

Public methods

getColumnIndex

public final int getColumnIndex()

the index of the column at which item is located

getColumnSpan

public final int getColumnSpan()

the number of columns the item spans

getRowIndex

public final int getRowIndex()

the index of the row at which item is located

getRowSpan

public final int getRowSpan()

the number of rows the item spans