Row
public class Row
DetailsOverviewRow |
An overview |
DividerRow |
Used to represent divider in HeadersFragment. |
ListRow |
A |
PageRow |
Used to represent content spanning full page. |
PlaybackControlsRow |
A |
SectionRow |
Used to represent section item in HeadersFragment. |
The base class for all rows. A commonly used subclass is the ListRow. Custom subclasses may define other types of rows.
Summary
Public constructors |
|---|
Row()Constructor for a Row. |
Row(HeaderItem headerItem)Constructor for a Row. |
Row(long id, HeaderItem headerItem)Constructor for a Row. |
Public methods |
|
|---|---|
final HeaderItem |
Returns the |
final long |
getId()Returns a unique identifier for this row. |
boolean |
Returns true if this Row can be rendered in a visible row view, false otherwise. |
final void |
setHeaderItem(HeaderItem headerItem)Sets the |
final void |
setId(long id)Sets the id for this row. |
Public constructors
Row
public Row(HeaderItem headerItem)
Constructor for a Row.
| Parameters | |
|---|---|
HeaderItem headerItem |
The |
Row
public Row(long id, HeaderItem headerItem)
Constructor for a Row.
| Parameters | |
|---|---|
long id |
The id of the row. |
HeaderItem headerItem |
The |
Public methods
getHeaderItem
public final HeaderItem getHeaderItem()
Returns the HeaderItem that represents metadata for the row.
| Returns | |
|---|---|
HeaderItem |
The HeaderItem for this row, or null if unset. |
getId
public final long getId()
Returns a unique identifier for this row. This id can come from one of three places:
isRenderedAsRowView
public boolean isRenderedAsRowView()
Returns true if this Row can be rendered in a visible row view, false otherwise. For example ListRow is rendered by ListRowPresenter. PageRow, SectionRow, DividerRow are rendered as invisible row views.
| Returns | |
|---|---|
boolean |
True if this Row can be rendered in a visible row view, false otherwise. |
setHeaderItem
public final void setHeaderItem(HeaderItem headerItem)
Sets the HeaderItem that represents metadata for the row.
| Parameters | |
|---|---|
HeaderItem headerItem |
The HeaderItem for this Row, or null if there is no header. |