11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <ScrollView xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : app =" http://schemas.android.com/apk/res-auto"
44 xmlns : tools =" http://schemas.android.com/tools"
55 android : layout_width =" match_parent"
88 android : padding =" 5dp"
99 tools : context =" .RegistrationActivity" >
1010
11- <EditText
12- android : id =" @+id/et_login_user"
11+ <LinearLayout
1312 android : layout_width =" match_parent"
1413 android : layout_height =" wrap_content"
15- android : maxLines =" 1"
16- android : singleLine =" true"
17- android : hint =" 请输入邮箱" />
14+ android : orientation =" vertical"
15+ android : padding =" 5dp" >
1816
19- <EditText
20- android : id =" @+id/et_nickname"
21- android : layout_width =" match_parent"
22- android : layout_height =" wrap_content"
23- android : maxLines =" 1"
24- android : singleLine =" true"
25- android : hint =" 请输入昵称" />
17+ <com .google.android.material.appbar.AppBarLayout
18+ android : layout_width =" match_parent"
19+ android : layout_height =" wrap_content" >
20+ <com .google.android.material.appbar.MaterialToolbar
21+ android : layout_width =" match_parent"
22+ android : layout_height =" wrap_content"
23+ android : minHeight =" ?attr/actionBarSize"
24+ app : title =" @string/str_reg" />
25+ </com .google.android.material.appbar.AppBarLayout>
2626
27- <EditText
28- android : id =" @+id/et_login_password"
29- android : layout_width =" match_parent"
30- android : layout_height =" wrap_content"
31- android : inputType =" textPassword"
32- android : maxLines =" 1"
33- android : singleLine =" true"
34- android : hint =" 请输入密码" />
27+ <com .google.android.material.textfield.TextInputLayout
28+ android : layout_width =" match_parent"
29+ android : layout_height =" wrap_content"
30+ android : hint =" @string/str_input_email" >
31+ <com .google.android.material.textfield.TextInputEditText
32+ android : id =" @+id/et_login_user"
33+ android : layout_width =" match_parent"
34+ android : layout_height =" wrap_content"
35+ android : lines =" 1"
36+ android : singleLine =" true"
37+ />
38+ </com .google.android.material.textfield.TextInputLayout>
3539
36- <LinearLayout
37- android : layout_width =" match_parent"
38- android : layout_height =" wrap_content"
39- android : orientation =" horizontal" >
40+ <com .google.android.material.textfield.TextInputLayout
41+ android : layout_width =" match_parent"
42+ android : layout_height =" wrap_content"
43+ android : hint =" @string/str_input_nickname" >
44+ <com .google.android.material.textfield.TextInputEditText
45+ android : id =" @+id/et_nickname"
46+ android : layout_width =" match_parent"
47+ android : layout_height =" wrap_content"
48+ android : lines =" 1"
49+ android : singleLine =" true"
50+ />
51+ </com .google.android.material.textfield.TextInputLayout>
4052
41- <EditText
42- android : id =" @+id/et_login_code"
43- android : layout_width =" 0dp"
53+ <com .google.android.material.textfield.TextInputLayout
54+ android : layout_width =" match_parent"
4455 android : layout_height =" wrap_content"
45- android : layout_weight =" 0.6"
46- android : inputType =" text"
47- android : maxLines =" 1"
48- android : singleLine =" true"
49- android : hint =" 请输入验证码" />
56+ android : hint =" @string/str_input_password" >
57+ <com .google.android.material.textfield.TextInputEditText
58+ android : id =" @+id/et_login_password"
59+ android : layout_width =" match_parent"
60+ android : layout_height =" wrap_content"
61+ android : inputType =" textPassword"
62+ android : lines =" 1"
63+ android : singleLine =" true"
64+ />
65+ </com .google.android.material.textfield.TextInputLayout>
66+
67+ <LinearLayout
68+ android : layout_width =" match_parent"
69+ android : layout_height =" wrap_content"
70+ android : orientation =" horizontal" >
71+
72+ <com .google.android.material.textfield.TextInputLayout
73+ android : layout_width =" 0dp"
74+ android : layout_height =" wrap_content"
75+ android : layout_weight =" 0.6"
76+ android : hint =" @string/str_input_code" >
77+ <com .google.android.material.textfield.TextInputEditText
78+ android : id =" @+id/et_login_code"
79+ android : layout_width =" match_parent"
80+ android : layout_height =" wrap_content"
81+ android : lines =" 1"
82+ android : singleLine =" true"
83+ />
84+ </com .google.android.material.textfield.TextInputLayout>
85+
86+ <Button
87+ android : id =" @+id/btn_send_code"
88+ android : layout_width =" wrap_content"
89+ android : layout_height =" wrap_content"
90+ android : text =" @string/str_send" />
91+
92+ </LinearLayout >
5093
5194 <Button
52- android : id =" @+id/btn_send_code "
53- android : layout_width =" wrap_content "
95+ android : id =" @+id/btn_registration "
96+ android : layout_width =" match_parent "
5497 android : layout_height =" wrap_content"
55- android : text =" 发送" />
98+ android : text =" @string/str_reg" />
99+
100+ <TextView
101+ android : id =" @+id/tv_login"
102+ android : layout_width =" match_parent"
103+ android : layout_height =" 30dp"
104+ android : layout_gravity =" center"
105+ android : gravity =" center"
106+ android : text =" @string/str_login" />
107+
108+ <TextView
109+ android : id =" @+id/tv_forgetpwd"
110+ android : layout_marginTop =" 50dp"
111+ android : layout_width =" match_parent"
112+ android : layout_height =" 30dp"
113+ android : layout_gravity =" center"
114+ android : gravity =" center"
115+ android : text =" @string/str_forget_password" />
56116
57117 </LinearLayout >
58118
59- <Button
60- android : id =" @+id/btn_registration"
61- android : layout_width =" match_parent"
62- android : layout_height =" wrap_content"
63- android : text =" 注册" />
64119
65- <TextView
66- android : id =" @+id/tv_login"
67- android : layout_width =" match_parent"
68- android : layout_height =" 30dp"
69- android : layout_gravity =" center"
70- android : gravity =" center"
71- android : text =" 登录" />
72-
73- <TextView
74- android : id =" @+id/tv_forgetpwd"
75- android : layout_marginTop =" 50dp"
76- android : layout_width =" match_parent"
77- android : layout_height =" 30dp"
78- android : layout_gravity =" center"
79- android : gravity =" center"
80- android : text =" 忘记密码" />
81120
82- </LinearLayout >
121+ </ScrollView >
0 commit comments