Files
android_development/samples/SupportLeanbackDemos/res/layout/horizontal_grid.xml
Dake Gu d17b2e78e8 Add test case for multiple row horizontal grid view
Add test case for update dataset at last row with empty space.

b/18631342
b/18718926

Change-Id: I3c745a41b0486cf293fc6a5a595e50f0a14ee0d0
2014-12-11 14:59:12 -08:00

24 lines
821 B
XML

<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:lb="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<android.support.v17.leanback.widget.HorizontalGridView
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:focusable="true"
android:focusableInTouchMode="true"
android:background="#00ffff"
lb:horizontalMargin="12dip"
lb:verticalMargin="24dip"
lb:numberOfRows="3"
lb:rowHeight="150dip"
android:paddingBottom="12dip"
android:paddingLeft="12dip"
android:paddingRight="12dip"
android:paddingTop="12dip" />
</RelativeLayout>