Most visited

Recently visited

ListRow

public class ListRow
extends Row

java.lang.Object
   ↳ android.support.v17.leanback.widget.Row
     ↳ android.support.v17.leanback.widget.ListRow


一个 Row的可选组成 HeaderItemObjectAdapter描述列表中的项目。

Summary

Public constructors

ListRow(HeaderItem header, ObjectAdapter adapter)
ListRow(long id, HeaderItem header, ObjectAdapter adapter)
ListRow(ObjectAdapter adapter)

Public methods

final ObjectAdapter getAdapter()

返回表示对象列表的 ObjectAdapter

CharSequence getContentDescription()

返回ListRow的内容描述。

void setContentDescription(CharSequence contentDescription)

显式设置ListRow的内容描述, getContentDescription()将忽略来自HeaderItem的值。

Inherited methods

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

Public constructors

ListRow

ListRow (HeaderItem header, 
                ObjectAdapter adapter)

Parameters
header HeaderItem
adapter ObjectAdapter

ListRow

ListRow (long id, 
                HeaderItem header, 
                ObjectAdapter adapter)

Parameters
id long
header HeaderItem
adapter ObjectAdapter

ListRow

ListRow (ObjectAdapter adapter)

Parameters
adapter ObjectAdapter

Public methods

getAdapter

ObjectAdapter getAdapter ()

返回表示对象列表的 ObjectAdapter

Returns
ObjectAdapter

getContentDescription

CharSequence getContentDescription ()

返回ListRow的内容描述。 默认情况下,它将返回getContentDescription()getName() ,除非明确调用了setContentDescription(CharSequence)

Returns
CharSequence Content description for the ListRow.

setContentDescription

void setContentDescription (CharSequence contentDescription)

显式设置ListRow的内容描述, getContentDescription()将忽略来自HeaderItem的值。

Parameters
contentDescription CharSequence: Content description sets on the ListRow.

Hooray!