Skip to content

Most visited

Recently visited

navigation
added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ListRow

public class ListRow
extends Row

java.lang.Object
   ↳ android.support.v17.leanback.widget.Row
     ↳ android.support.v17.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 ObjectAdapter that represents a list of objects.

CharSequence getContentDescription()

Returns content description for the ListRow.

void setContentDescription(CharSequence contentDescription)

Explicitly set content description for the ListRow, getContentDescription() will ignore values from HeaderItem.

Inherited methods

From class android.support.v17.leanback.widget.Row
From class java.lang.Object

Public constructors

ListRow

added in version 22.1.0
ListRow (HeaderItem header, 
                ObjectAdapter adapter)

Parameters
header HeaderItem

adapter ObjectAdapter

ListRow

added in version 22.1.0
ListRow (long id, 
                HeaderItem header, 
                ObjectAdapter adapter)

Parameters
id long

header HeaderItem

adapter ObjectAdapter

ListRow

added in version 22.1.0
ListRow (ObjectAdapter adapter)

Parameters
adapter ObjectAdapter

Public methods

getAdapter

added in version 22.1.0
ObjectAdapter getAdapter ()

Returns the ObjectAdapter that represents a list of objects.

Returns
ObjectAdapter

getContentDescription

added in version 24.1.0
CharSequence getContentDescription ()

Returns content description for the ListRow. By default it returns getContentDescription() or getName(), unless setContentDescription(CharSequence) was explicitly called.

Returns
CharSequence Content description for the ListRow.

setContentDescription

added in version 24.1.0
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.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)