[img]http://dl2.iteye.com/upload/attachment/0115/2160/7bfa0f7e-510b-3a8e-9067-14b32e98b0b8.png[/img]
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="进攻"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="撤退"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="左钩拳"
android:layout_centerVertical="true"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="右钩拳"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
/>
<Button
android:text="必杀技"
android:layout_centerInParent="true"
android:id="@+id/bisha"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<Button
android:layout_toLeftOf="@id/bisha"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="左"
android:layout_alignTop="@id/bisha"
/>
<Button
android:layout_above="@id/bisha"
android:text="上"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_below="@id/bisha"
android:text="下"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
/>
<Button
android:layout_toRightOf="@id/bisha"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="右"
android:layout_alignTop="@id/bisha"
/>
</RelativeLayout>