1 <?xml version="1.0" encoding="utf-8"?>
2
3 xmlns:app="http://schemas.android.com/apk/res-auto"
4 xmlns:tools="http://schemas.android.com/tools"
5 android:layout_width="match_parent"
6 android:layout_height="match_parent"
7 tools:context=".view.LoginActivity"
8 android:background="@drawable/login_main_bg2">
9
10
12 android:layout_height="match_parent"
13 android:background="#3fa0a0a0"
14 android:gravity="center"
15 android:orientation="vertical">
16
17
19 android:layout_width="100dp"
20 android:layout_height="100dp"
21 android:layout_gravity="center_horizontal"
22 android:layout_marginBottom="24dp"
23 android:src="@drawable/next" />
24
25
26
28 android:layout_height="wrap_content">
29
30
32 android:layout_width="match_parent"
33 android:layout_height="50sp"
34 android:layout_margin="10dp"
35 android:background="@drawable/login_input_bg"
36 android:gravity="center"
37 android:hint="用户名"
38 android:inputType="number"
39 android:padding="5dp" />
40
41
43 android:layout_width="wrap_content"
44 android:layout_height="wrap_content"
45 android:layout_alignParentRight="true"
46 android:layout_centerVertical="true"
47 android:background="@null"
48
49 />
50
51
52
53
55 android:layout_width="match_parent"
56 android:layout_height="50sp"
57 android:layout_margin="10dp"
58 android:background="@drawable/login_input_bg"
59 android:gravity="center"
60 android:hint="密码"
61 android:inputType="textPassword"
62 android:padding="5dp" />
63
64
66 android:layout_height="wrap_content"
67 android:layout_marginLeft="10dp"
68 android:layout_marginTop="10dp">
69
70
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:background="@drawable/login_input_bg"
75 android:padding="10dp"
76 android:text="记住密码"
77 android:textSize="18sp" />
78
79
80
81
82
84 android:layout_width="180dp"
85 android:layout_height="80dp"
86 android:layout_gravity="right"
87 android:layout_marginTop="30dp"
88 android:background="@drawable/next" />
89
90
91
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:layout_alignParentBottom="true"
96 android:gravity="center"
97 android:textColor="#050505"
98 android:text="还没有账号? 去创建"
99 android:textSize="18sp"
100 android:background="@null"/>
101
102