|
| 1 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | + xmlns:tools="http://schemas.android.com/tools" |
| 3 | + android:layout_width="match_parent" |
| 4 | + android:layout_height="match_parent" |
| 5 | + android:background="#E6E6E6" |
| 6 | + android:orientation="vertical"> |
| 7 | + |
| 8 | + <ImageView |
| 9 | + android:id="@+id/iv_head" |
| 10 | + android:layout_width="50dp" |
| 11 | + android:layout_height="50dp" |
| 12 | + android:src="@drawable/sodoku" |
| 13 | + android:layout_alignParentRight="true" |
| 14 | + android:layout_alignParentEnd="true" |
| 15 | + android:layout_alignParentLeft="true" |
| 16 | + android:layout_alignParentStart="true" |
| 17 | + android:layout_alignParentTop="true" |
| 18 | + android:layout_above="@+id/layout" /> |
| 19 | + |
| 20 | + <LinearLayout |
| 21 | + android:id="@+id/layout" |
| 22 | + android:layout_width="match_parent" |
| 23 | + android:layout_height="wrap_content" |
| 24 | + android:background="#ffffff" |
| 25 | + android:orientation="vertical" |
| 26 | + android:layout_above="@+id/btn_login" |
| 27 | + android:layout_alignParentLeft="true" |
| 28 | + android:layout_alignParentStart="true" |
| 29 | + android:layout_marginBottom="59dp"> |
| 30 | + <RelativeLayout |
| 31 | + android:id="@+id/r1_username" |
| 32 | + android:layout_width="match_parent" |
| 33 | + android:layout_height="wrap_content" |
| 34 | + android:layout_margin="10dp"> |
| 35 | + <TextView |
| 36 | + android:id="@+id/tv_name" |
| 37 | + android:layout_width="wrap_content" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + android:layout_centerVertical="true" |
| 40 | + android:text="账号"/> |
| 41 | + <EditText |
| 42 | + android:id="@+id/et_number" |
| 43 | + android:layout_width="match_parent" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:layout_marginLeft="5dp" |
| 46 | + android:layout_toRightOf="@+id/tv_name" |
| 47 | + android:background="@null"/> |
| 48 | + </RelativeLayout> |
| 49 | + <View |
| 50 | + android:layout_width="match_parent" |
| 51 | + android:layout_height="2dp" |
| 52 | + android:background="#E6E6E6"/> |
| 53 | + <RelativeLayout |
| 54 | + android:id="@+id/r1_userpsw" |
| 55 | + android:layout_width="match_parent" |
| 56 | + android:layout_height="wrap_content" |
| 57 | + android:layout_margin="10dp"> |
| 58 | + <TextView |
| 59 | + android:id="@+id/tv_psw" |
| 60 | + android:layout_width="wrap_content" |
| 61 | + android:layout_height="wrap_content" |
| 62 | + android:layout_centerVertical="true" |
| 63 | + android:text="密码"/> |
| 64 | + <EditText |
| 65 | + android:id="@+id/et_password" |
| 66 | + android:layout_width="match_parent" |
| 67 | + android:layout_height="wrap_content" |
| 68 | + android:inputType="textPassword" |
| 69 | + android:background="@null" |
| 70 | + android:layout_alignTop="@+id/tv_psw" |
| 71 | + android:layout_alignParentLeft="true" |
| 72 | + android:layout_alignParentStart="true" /> |
| 73 | + </RelativeLayout> |
| 74 | + |
| 75 | + </LinearLayout> |
| 76 | + <Button |
| 77 | + android:id="@+id/btn_login" |
| 78 | + android:layout_width="match_parent" |
| 79 | + android:layout_height="wrap_content" |
| 80 | + android:background="#3C8DC4" |
| 81 | + android:text="登录" |
| 82 | + android:textColor="#ffffff" |
| 83 | + android:layout_marginBottom="177dp" |
| 84 | + android:layout_alignParentBottom="true" |
| 85 | + android:layout_alignParentLeft="true" |
| 86 | + android:layout_alignParentStart="true" /> |
| 87 | +</RelativeLayout> |
| 88 | + |
| 89 | + |
0 commit comments