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

ListRow

public class ListRow extends Row
A row composed of a optional {@link HeaderItem}, and an {@link ObjectAdapter} describing children.

Fields Summary
private final ObjectAdapter
mAdapter
Constructors Summary
public ListRow(HeaderItem header, ObjectAdapter adapter)

        super(header);
        mAdapter = adapter;
        verify();
    
public ListRow(long id, HeaderItem header, ObjectAdapter adapter)

        super(id, header);
        mAdapter = adapter;
        verify();
    
public ListRow(ObjectAdapter adapter)

        super();
        mAdapter = adapter;
        verify();
    
Methods Summary
public final ObjectAdaptergetAdapter()
Get the {@link ObjectAdapter} that represents a list of objects.

        return mAdapter;
    
private voidverify()

        if (mAdapter == null) {
            throw new IllegalArgumentException("ObjectAdapter cannot be null");
        }