<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:id="@+id/text1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10px"
android:text="图片按钮" />
<ImageButton
android:id="@+id/ib1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="30px"
android:src="@drawable/right"/>
<ImageButton
android:id="@+id/ib2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="130px"
android:src="@drawable/wrong"/>
</RelativeLayout>