Files
android_development/samples/FixedGridLayout/res/layout/main.xml
Joe Onorato a42091afb7 Add the FixedGridLayout sample code.
This time with an Android.mk

P.S. Hi from Google I/O!
2009-05-28 16:38:52 -07:00

43 lines
1.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<com.example.android.fixedgridlayout.FixedGridLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.example.android.fixedgridlayout"
android:id="@+id/grid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
app:cellWidth="80dp"
app:cellHeight="100dp"
>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bugdroid"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bugdroid"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bugdroid"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bugdroid"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bugdroid"
/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/bugdroid"
/>
</com.example.android.fixedgridlayout.FixedGridLayout>