Android APIs
public class

HeaderItem

extends Object
java.lang.Object
   ↳ android.support.v17.leanback.widget.HeaderItem

Class Overview

A header item is an item that describes metadata of Row, such as a category of media items. Developer may override this class to add more information.

Summary

Public Constructors
HeaderItem(long id, String name, String imageUri)
Create a header item.
HeaderItem(String name, String imageUri)
Create a header item.
Public Methods
final long getId()
Returns a unique identifier for this item.
final String getImageUri()
Returns the icon for this header item.
final String getName()
Returns the name of this header item.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public HeaderItem (long id, String name, String imageUri)

Create a header item. All fields are optional.

public HeaderItem (String name, String imageUri)

Create a header item. All fields are optional.

Public Methods

public final long getId ()

Returns a unique identifier for this item.

public final String getImageUri ()

Returns the icon for this header item.

public final String getName ()

Returns the name of this header item.