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

ListRowView

public final class ListRowView extends android.widget.LinearLayout
ListRowView contains a horizontal grid view.

Fields Summary
private HorizontalGridView
mGridView
Constructors Summary
public ListRowView(android.content.Context context)

        this(context, null);
    
public ListRowView(android.content.Context context, android.util.AttributeSet attrs)

        this(context, attrs, 0);
    
public ListRowView(android.content.Context context, android.util.AttributeSet attrs, int defStyle)

        super(context, attrs, defStyle);

        LayoutInflater inflater = LayoutInflater.from(context);
        inflater.inflate(R.layout.lb_list_row, this);

        mGridView = (HorizontalGridView) findViewById(R.id.row_content);
        // Uncomment this to experiment with page-based scrolling.
        // mGridView.setFocusScrollStrategy(HorizontalGridView.FOCUS_SCROLL_PAGE);

        setOrientation(LinearLayout.VERTICAL);
        setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS);
    
Methods Summary
public HorizontalGridViewgetGridView()

        return mGridView;