belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
HeaderItem
public
class
HeaderItem
extends Object
java.lang.Object | |
↳ | android.support.v17.leanback.widget.HeaderItem |
A header item describes the metadata of a Row
, such as a category
of media items. May be subclassed to add more information.
Summary
Public constructors | |
---|---|
HeaderItem(long id, String name)
Create a header item. |
|
HeaderItem(String name)
Create a header item. |
Public methods | |
---|---|
CharSequence
|
getContentDescription()
Returns optional content description for the HeaderItem. |
CharSequence
|
getDescription()
Returns the description for the current row. |
final
long
|
getId()
Returns a unique identifier for this item. |
final
String
|
getName()
Returns the name of this header item. |
void
|
setContentDescription(CharSequence contentDescription)
Sets optional content description for the HeaderItem. |
void
|
setDescription(CharSequence description)
Sets the description for the current header item. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|
Public constructors
HeaderItem
HeaderItem (long id, String name)
Create a header item. All fields are optional.
Parameters | |
---|---|
id |
long |
name |
String |
HeaderItem
HeaderItem (String name)
Create a header item.
Parameters | |
---|---|
name |
String |
Public methods
getContentDescription
CharSequence getContentDescription ()
Returns optional content description for the HeaderItem. When it is null, getName()
should be used for the content description.
Returns | |
---|---|
CharSequence |
Content description for the HeaderItem. |
getDescription
CharSequence getDescription ()
Returns the description for the current row.
Returns | |
---|---|
CharSequence |