![]()
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ll_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF">
<View
android:id="@+id/V_1"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#21217A"
android:layout_centerInParent="true"/>
<View
android:id="@+id/V_2"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#DAB8DF"
android:layout_above="@+id/V_1"
android:layout_toLeftOf="@+id/V_1"/>
<View
android:id="@+id/V_3"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#FFEB3B"
android:layout_above="@id/V_1"
android:layout_toRightOf="@id/V_2"/>
<View
android:id="@+id/V_4"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#ABCDEF"
android:layout_above="@id/V_1"
android:layout_toRightOf="@id/V_3"/>
<View
android:id="@+id/V_5"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#2196F3"
android:layout_below="@id/V_2"
android:layout_toLeftOf="@id/V_1"/>
<View
android:id="@+id/V_6"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#FF5722"
android:layout_below="@id/V_4"
android:layout_toRightOf="@id/V_1"/>
<View
android:id="@+id/V_7"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#673AB7"
android:layout_below="@id/V_5"
android:layout_toLeftOf="@id/V_1"/>
<View
android:id="@+id/V_8"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#00BCD4"
android:layout_below="@id/V_1"
android:layout_toRightOf="@id/V_7"/>
<View
android:id="@+id/V_9"
android:layout_width="100dp"
android:layout_height="100dp"
android:background="#03F10A"
android:layout_below="@id/V_1"
android:layout_toRightOf="@id/V_8"/>
</RelativeLayout>
![]()
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ll_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ll_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FAFAFA"
android:layout_margin="20dp"
android:orientation="horizontal">
<View
android:id="@+id/V_1"
android:layout_width="match_parent"
android:layout_height="155dp"
android:background="#81CAF0"
android:layout_alignParentTop="true"/>
<View
android:id="@+id/V_2"
android:layout_width="match_parent"
android:layout_height="155dp"
android:background="#06FC12"
android:layout_alignParentBottom="true"/>
<View
android:id="@+id/V_3"
android:layout_width="180dp"
android:layout_height="551dp"
android:layout_below="@+id/V_1"
android:layout_above="@+id/V_2"
android:background="#F44336"
android:layout_alignParentLeft="true"/>
<View
android:id="@+id/V_4"
android:layout_width="180dp"
android:layout_height="551dp"
android:layout_below="@+id/V_1"
android:layout_above="@+id/V_2"
android:background="#FFEB3B"
android:layout_alignParentRight="true"/>
</RelativeLayout>
![]()
<RelativeLayout
android:id="@+id/ll_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FFFFFF"
tools:layout_editor_absoluteX="37dp"
tools:layout_editor_absoluteY="0dp">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/ll_1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#FAFAFA"
android:layout_margin="20dp"
android:orientation="horizontal">
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
android:orientation="vertical">
<ImageView
android:id="@+id/Tu_1"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_centerHorizontal="true"
android:layout_marginTop="90dp"
android:background="@drawable/game" />
<TextView
android:id="@+id/tv_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:padding="10dp"
android:text="用户"
android:textColor="#000000"
android:textSize="24sp" />
<TextView
android:id="@+id/tv_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_1"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:padding="10dp"
android:text="密码"
android:textColor="#000000"
android:textSize="24sp" />
<EditText
android:id="@+id/et_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:layout_toRightOf="@id/tv_1"
android:drawablePadding="10dp"
android:hint="请输入账号"
android:padding="10dp"
android:textColor="#000000"
android:textSize="24sp" />
<EditText
android:id="@+id/et_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/tv_1"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_toRightOf="@id/tv_1"
android:drawablePadding="10dp"
android:hint="请输入密码"
android:padding="10dp"
android:textColor="#FFF7F7"
android:textSize="24sp" />
<Button
android:layout_width="1000dp"
android:layout_height="wrap_content"
android:layout_below="@id/et_2"
android:layout_centerHorizontal="true"
android:layout_margin="30dp"
android:background="#ADACAC"
android:padding="15dp"
android:text="登录"
android:textColor="#FFFEFE"
android:textSize="25sp" />
</RelativeLayout>
![]()