<?xml version="1.0" encoding="utf-8"?> <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:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity"> <Button android:id="@+id/a1" android:layout_width="100dp" android:layout_height="100dp" android:layout_centerInParent="true" android:background="#FF7F24" /> <Button android:id="@+id/a3" android:layout_width="100dp" android:layout_height="100dp" android:layout_below="@id/a1" android:layout_alignRight="@+id/a1" android:background="#B8860B" /> <Button android:id="@+id/a6" android:layout_width="100dp" android:layout_height="100dp" android:layout_below="@id/a1" android:layout_toLeftOf="@+id/a1" android:background="#303030" /> <Button android:id="@+id/a7" android:layout_width="100dp" android:layout_height="100dp" android:layout_below="@id/a1" android:layout_toRightOf="@+id/a1" android:background="#0000FF" /> <Button android:id="@+id/a8" android:layout_width="100dp" android:layout_height="100dp" android:layout_toLeftOf="@id/a1" android:layout_alignBottom="@+id/a1" android:background="#A0522D" /> <Button android:id="@+id/a9" android:layout_width="100dp" android:layout_height="100dp" android:layout_toRightOf="@id/a1" android:layout_alignBottom="@+id/a1" android:background="#CD00CD" /> <Button android:id="@+id/a5" android:layout_width="100dp" android:layout_height="100dp" android:layout_above="@+id/a1" android:layout_toLeftOf="@+id/a1" android:background="#7CFC00" /> <Button android:id="@+id/a4" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignBaseline="@+id/a5" android:layout_alignBottom="@+id/a5" android:layout_toLeftOf="@+id/a9" android:background="#969696" /> <Button android:id="@+id/a2" android:layout_width="100dp" android:layout_height="100dp" android:layout_alignBaseline="@+id/a4" android:layout_alignBottom="@+id/a4" android:layout_alignLeft="@+id/a9" android:background="#BF3EFF" />
<?xml version="1.0" encoding="utf-8"?> <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" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.example.foolishfan.user_v10.Login"> <RelativeLayout android:id="@+id/login_view" android:layout_width="400dp" android:layout_height="800dp" android:layout_centerInParent="true" > <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="登录" android:id="@+id/login_btn_login" android:onClick="finish_login" android:background="#545bcb" android:textSize="20dp" android:textColor="#ffffff" android:layout_below="@+id/login_edit_pwd" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_marginTop="52dp" /> <EditText android:layout_width="400dp" android:layout_height="60dp" android:inputType="textPassword" android:ems="10" android:id="@+id/login_edit_pwd" android:drawableLeft="@android:drawable/ic_lock_idle_lock" android:hint="请输入您的密码" android:layout_below="@+id/login_edit_account" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" /> <EditText android:layout_width="400dp" android:layout_height="60dp" android:inputType="textPersonName" android:id="@+id/login_edit_account" android:drawableLeft="@android:drawable/ic_menu_myplaces" android:hint="请输入您的用户名" android:layout_below="@+id/logo" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_marginTop="20dp" /> <ImageView android:id="@+id/logo" android:layout_width="300dp" android:layout_height="150dp" android:layout_alignParentEnd="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_alignParentTop="true" android:background="#000001" /> </RelativeLayout> <RelativeLayout android:id="@+id/login_success_view" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerInParent="true" android:layout_marginLeft="15.0px" android:layout_marginRight="15.0px" android:layout_marginTop="62.0px" android:background="#ff3f3f3f" android:paddingBottom="10.0px" android:paddingTop="21.0px" android:visibility="gone" > <TextView android:id="@+id/login_success_show" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:textColor="#ff3f3f3f" android:textSize="20.0dip" /> </RelativeLayout> </RelativeLayout>