1616 tools : context =" .ui.LoginActivity" >
1717
1818 <TextView
19- app : layout_constraintTop_toTopOf =" parent"
20- android : id =" @+id/tvSpecialTitle"
21- android : layout_width =" wrap_content"
22- android : layout_height =" wrap_content"
23- android : layout_marginTop =" 80dp"
24- android : layout_marginBottom =" 16dp"
25- android : text =" @string/login_special_title"
26- app : layout_constraintVertical_bias =" 1"
27- android : textColor =" @color/login_special_title"
28- android : textSize =" 26dp"
29- app : layout_constraintBottom_toTopOf =" @+id/tvMiddleTitle"
30- app : layout_constraintLeft_toLeftOf =" parent" />
19+ android : id =" @+id/tvSpecialTitle"
20+ android : layout_width =" wrap_content"
21+ android : layout_height =" wrap_content"
22+ android : layout_marginTop =" 80dp"
23+ android : layout_marginBottom =" 16dp"
24+ android : text =" @string/login_special_title"
25+ android : textColor =" @color/login_special_title"
26+ android : textSize =" 26dp"
27+ app : layout_constraintBottom_toTopOf =" @+id/tvMiddleTitle"
28+ app : layout_constraintLeft_toLeftOf =" parent"
29+ app : layout_constraintTop_toTopOf =" parent"
30+ app : layout_constraintVertical_bias =" 1"
31+ tools : ignore =" SpUsage" />
3132
3233 <TextView
33- android : id =" @+id/tvMiddleTitle"
34- android : layout_width =" wrap_content"
35- android : layout_height =" wrap_content"
36- android : layout_marginBottom =" 16dp"
37- android : text =" @string/login_middle_title"
38- android : textColor =" @color/login_sub_title"
39- android : textSize =" 26dp"
40- app : layout_constraintBottom_toTopOf =" @+id/tvBottomTitle"
41- app : layout_constraintLeft_toLeftOf =" @+id/tvSpecialTitle" />
34+ android : id =" @+id/tvMiddleTitle"
35+ android : layout_width =" wrap_content"
36+ android : layout_height =" wrap_content"
37+ android : layout_marginBottom =" 16dp"
38+ android : text =" @string/login_middle_title"
39+ android : textColor =" @color/login_sub_title"
40+ android : textSize =" 26dp"
41+ app : layout_constraintBottom_toTopOf =" @+id/tvBottomTitle"
42+ app : layout_constraintLeft_toLeftOf =" @+id/tvSpecialTitle"
43+ tools : ignore =" SpUsage" />
4244
4345 <TextView
44- android : id =" @+id/tvBottomTitle"
45- android : layout_width =" wrap_content"
46- android : layout_height =" wrap_content"
47- android : layout_marginBottom =" 82dp"
48- android : text =" @string/login_bottom_title"
49- android : textColor =" @color/login_sub_title"
50- android : textSize =" 26dp"
51- app : layout_constraintBottom_toTopOf =" @+id/editIDLayout"
52- app : layout_constraintLeft_toLeftOf =" @+id/tvMiddleTitle" />
46+ android : id =" @+id/tvBottomTitle"
47+ android : layout_width =" wrap_content"
48+ android : layout_height =" wrap_content"
49+ android : layout_marginBottom =" 82dp"
50+ android : text =" @string/login_bottom_title"
51+ android : textColor =" @color/login_sub_title"
52+ android : textSize =" 26dp"
53+ app : layout_constraintBottom_toTopOf =" @+id/editIDLayout"
54+ app : layout_constraintLeft_toLeftOf =" @+id/tvMiddleTitle"
55+ tools : ignore =" SpUsage" />
5356 <com .google.android.material.textfield.TextInputLayout
54- android : id =" @+id/editIDLayout"
55- app : layout_constraintBottom_toBottomOf = " parent "
56- app : layout_constraintLeft_toLeftOf = " parent "
57- app : layout_constraintRight_toRightOf = " parent "
58- app : layout_constraintTop_toTopOf = " parent "
59- style =" @style/LoginEditTheme "
60- android : theme =" @style/LoginEditTheme "
61- android : background =" @null "
62- android : layout_width = " match_parent "
63- android : textColor = " @android:color/black "
64- android : hint = " @string/login_input_id_hint "
65- android : textColorHint = " @color/login_edit_hint "
66- android : layout_height = " wrap_content " >
57+ android : id =" @+id/editIDLayout"
58+ style = " @style/LoginEditTheme "
59+ android : layout_width = " match_parent "
60+ android : layout_height = " wrap_content "
61+ android : background = " @null "
62+ android : hint =" @string/login_input_id_hint "
63+ android : textColor =" @android:color/black "
64+ android : textColorHint =" @color/login_edit_hint "
65+ android : theme = " @style/LoginEditTheme "
66+ app : layout_constraintBottom_toBottomOf = " parent "
67+ app : layout_constraintLeft_toLeftOf = " parent "
68+ app : layout_constraintRight_toRightOf = " parent "
69+ app : layout_constraintTop_toTopOf = " parent " >
6770 <androidx .appcompat.widget.AppCompatEditText
68- android : id =" @+id/editID"
69- android : layout_width =" match_parent"
70- android : layout_height =" wrap_content"
71- android : background =" @null"
72- android : textSize =" 12dp" />
71+ android : id =" @+id/editID"
72+ android : layout_width =" match_parent"
73+ android : layout_height =" wrap_content"
74+ android : background =" @null"
75+ android : textSize =" 12dp"
76+ tools : ignore =" SpUsage" />
7377 </com .google.android.material.textfield.TextInputLayout>
7478
7579 <com .google.android.material.textfield.TextInputLayout
8791 app : layout_constraintTop_toBottomOf =" @+id/editIDLayout"
8892 android : layout_height =" wrap_content" >
8993 <androidx .appcompat.widget.AppCompatEditText
90- android : id =" @+id/editPW"
91- android : layout_width =" match_parent"
92- android : background =" @null"
93- android : layout_height =" wrap_content"
94- android : textSize =" 12dp" />
94+ android : id =" @+id/editPW"
95+ android : layout_width =" match_parent"
96+ android : layout_height =" wrap_content"
97+ android : background =" @null"
98+ android : textSize =" 12dp"
99+ tools : ignore =" SpUsage" />
95100 </com .google.android.material.textfield.TextInputLayout>
96101
97102
98103 <Button
99- android : onClick =" @{()->loginViewModel.test()}"
100- android : enabled =" true"
101- android : layout_width =" match_parent"
102- android : layout_height =" wrap_content"
103- android : layout_marginTop =" 80dp"
104- android : text =" @string/login"
105- android : background =" @drawable/login_btn_state"
106- android : textColor =" @android:color/white"
107- android : textSize =" 16dp"
108- app : layout_constraintBottom_toBottomOf =" parent"
109- app : layout_constraintTop_toBottomOf =" @+id/editPWLayout" />
104+ android : layout_width =" match_parent"
105+ android : layout_height =" wrap_content"
106+ android : layout_marginTop =" 80dp"
107+ android : background =" @drawable/login_btn_state"
108+ android : enabled =" false"
109+ android : onClick =" @{()->loginViewModel.login()}"
110+ android : text =" @string/login"
111+ android : textColor =" @android:color/white"
112+ android : textSize =" 16dp"
113+ app : layout_constraintBottom_toBottomOf =" parent"
114+ app : layout_constraintTop_toBottomOf =" @+id/editPWLayout"
115+ tools : ignore =" SpUsage" />
110116 </androidx .constraintlayout.widget.ConstraintLayout>
111117</layout >
0 commit comments