ListRow
public
class
ListRow
extends Row
java.lang.Object | ||
↳ | androidx.leanback.widget.Row | |
↳ | androidx.leanback.widget.ListRow |
A Row
composed of a optional HeaderItem
, and an ObjectAdapter
describing the items in the list.
Summary
Public constructors | |
---|---|
ListRow(HeaderItem header, ObjectAdapter adapter)
|
|
ListRow(long id, HeaderItem header, ObjectAdapter adapter)
|
|
ListRow(ObjectAdapter adapter)
|
Public methods | |
---|---|
final
ObjectAdapter
|
getAdapter()
Returns the |
CharSequence
|
getContentDescription()
Returns content description for the ListRow. |
void
|
setContentDescription(CharSequence contentDescription)
Explicitly set content description for the ListRow, |
Inherited methods | |
---|---|
Public constructors
ListRow
public ListRow (HeaderItem header, ObjectAdapter adapter)
Parameters | |
---|---|
header |
HeaderItem |
adapter |
ObjectAdapter |
ListRow
public ListRow (long id, HeaderItem header, ObjectAdapter adapter)
Parameters | |
---|---|
id |
long |
header |
HeaderItem |
adapter |
ObjectAdapter |
Public methods
getAdapter
public final ObjectAdapter getAdapter ()
Returns the ObjectAdapter
that represents a list of objects.
Returns | |
---|---|
ObjectAdapter |
getContentDescription
public CharSequence getContentDescription ()
Returns content description for the ListRow. By default it returns
HeaderItem.getContentDescription()
or HeaderItem.getName()
,
unless setContentDescription(CharSequence)
was explicitly called.
Returns | |
---|---|
CharSequence |
Content description for the ListRow. |
setContentDescription
public void setContentDescription (CharSequence contentDescription)
Explicitly set content description for the ListRow, getContentDescription()
will
ignore values from HeaderItem.
Parameters | |
---|---|
contentDescription |
CharSequence : Content description sets on the ListRow.
|