public class ListRow
extends Row
| java.lang.Object | ||
| android.support.v17.leanback.widget.Row | ||
| android.support.v17.leanback.widget.ListRow | ||
一个 Row的可选组成 HeaderItem和 ObjectAdapter描述列表中的项目。
Public constructors |
|
|---|---|
ListRow(HeaderItem header, ObjectAdapter adapter) |
|
ListRow(long id, HeaderItem header, ObjectAdapter adapter) |
|
ListRow(ObjectAdapter adapter) |
|
公共方法(Public methods) |
|
|---|---|
final ObjectAdapter |
getAdapter() 返回表示对象列表的 |
CharSequence |
getContentDescription() 返回ListRow的内容描述。 |
void |
setContentDescription(CharSequence contentDescription) 显式设置ListRow的内容描述, |
继承方法(Inherited methods) |
|
|---|---|
android.support.v17.leanback.widget.Row
|
|
java.lang.Object
|
|
ListRow (HeaderItem header, ObjectAdapter adapter)
| 参数(Parameters) | |
|---|---|
header |
HeaderItem
|
adapter |
ObjectAdapter
|
ListRow (long id,
HeaderItem header,
ObjectAdapter adapter)
| 参数(Parameters) | |
|---|---|
id |
long
|
header |
HeaderItem
|
adapter |
ObjectAdapter
|
CharSequence getContentDescription ()
返回ListRow的内容描述。 默认情况下,它将返回getContentDescription()或getName() ,除非明确调用了setContentDescription(CharSequence) 。
| 返回(Returns) | |
|---|---|
CharSequence |
Content description for the ListRow. |
void setContentDescription (CharSequence contentDescription)
显式设置ListRow的内容描述, getContentDescription()将忽略来自HeaderItem的值。
| 参数(Parameters) | |
|---|---|
contentDescription |
CharSequence: Content description sets on the ListRow. |