FileDocCategorySizeDatePackage
HeaderItem.javaAPI DocAndroid 5.1 API1521Thu Mar 12 22:22:56 GMT 2015android.support.v17.leanback.widget

HeaderItem

public class HeaderItem extends Object
A header item is an item that describes metadata of {@link Row}, such as a category of media items. Developer may override this class to add more information.

Fields Summary
private final long
mId
private final String
mName
Constructors Summary
public HeaderItem(long id, String name)
Create a header item. All fields are optional.

        mId = id;
        mName = name;
    
public HeaderItem(String name)
Create a header item.

        this(NO_ID, name);
    
Methods Summary
public final longgetId()
Returns a unique identifier for this item.

        return mId;
    
public final java.lang.StringgetName()
Returns the name of this header item.

        return mName;