public static class AccessibilityNodeInfoCompat.CollectionItemInfoCompat extends Object
A collection item is contained in a collection, it starts at a given row and column 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.
Modifier and Type | Method and Description |
---|---|
int |
getColumnIndex()
Gets the column index at which the item is located.
|
int |
getColumnSpan()
Gets the number of columns the item spans.
|
int |
getRowIndex()
Gets the row index at which the item is located.
|
int |
getRowSpan()
Gets the number of rows the item spans.
|
boolean |
isHeading()
Gets if the collection item is a heading.
|
boolean |
isSelected()
Gets if the collection item is selected.
|
static AccessibilityNodeInfoCompat.CollectionItemInfoCompat |
obtain(int rowIndex,
int rowSpan,
int columnIndex,
int columnSpan,
boolean heading)
Returns a cached instance if such is available otherwise a new one.
|
static AccessibilityNodeInfoCompat.CollectionItemInfoCompat |
obtain(int rowIndex,
int rowSpan,
int columnIndex,
int columnSpan,
boolean heading,
boolean selected)
Returns a cached instance if such is available otherwise a new one.
|
public static AccessibilityNodeInfoCompat.CollectionItemInfoCompat obtain(int rowIndex, int rowSpan, int columnIndex, int columnSpan, boolean heading, boolean selected)
rowIndex
- The row index at which the item is located.rowSpan
- The number of rows the item spans.columnIndex
- The column index at which the item is located.columnSpan
- The number of columns the item spans.heading
- Whether the item is a heading.selected
- Whether the item is selected.public static AccessibilityNodeInfoCompat.CollectionItemInfoCompat obtain(int rowIndex, int rowSpan, int columnIndex, int columnSpan, boolean heading)
rowIndex
- The row index at which the item is located.rowSpan
- The number of rows the item spans.columnIndex
- The column index at which the item is located.columnSpan
- The number of columns the item spans.heading
- Whether the item is a heading.public int getColumnIndex()
public int getColumnSpan()
public int getRowIndex()
public int getRowSpan()
public boolean isHeading()
public boolean isSelected()