ListRowViewpublic 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);
|
|