梅花可以理解为东南西北中 下边用button实现
用相对布局可以以中间那个为基本来确定其他的位置
<?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"
android:layout_gravity="center"
>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="100px"
android:height="100px"
android:id="@+id/dong"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="100px"
android:height="100px"
android:layout_below="@id/dong"
android:layout_toRightOf="@id/dong"
android:id="@+id/zhong"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="100px"
android:height="100px"
android:layout_toRightOf="@id/zhong"
android:layout_alignParentTop="true"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="100px"
android:height="100px"
android:layout_toLeftOf="@id/zhong"
android:layout_below="@id/zhong"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="100px"
android:height="100px"
android:layout_toRightOf="@id/zhong"
android:layout_below="@id/zhong"
/>
</RelativeLayout>