11<?xml version =" 1.0" encoding =" utf-8" ?>
22<layout xmlns : android =" http://schemas.android.com/apk/res/android"
3- xmlns : app =" http://schemas.android.com/apk/res-auto" >
3+ xmlns : app =" http://schemas.android.com/apk/res-auto" >
44
55 <data >
6- <variable name =" userLoginModel" type =" com.fmt.github.user.model.UserLoginModel" />
6+
7+ <variable
8+ name =" userLoginModel"
9+ type =" com.fmt.github.user.model.UserLoginModel" />
710 </data >
811
912 <LinearLayout
10- android : orientation =" vertical"
11- android : layout_width =" match_parent"
12- android : layout_height =" match_parent" >
13+ android : layout_width =" match_parent"
14+ android : layout_height =" match_parent"
15+ android : background =" @android:color/white"
16+ android : orientation =" vertical" >
1317
1418 <androidx .appcompat.widget.Toolbar
15- android : id =" @+id/mToolbar"
16- android : layout_width =" match_parent"
17- android : layout_height =" wrap_content"
18- android : background =" @color/colorPrimary"
19- app : title =" @string/go_to_login"
20- app : titleTextColor =" @android:color/white" />
19+ android : id =" @+id/mToolbar"
20+ android : layout_width =" match_parent"
21+ android : layout_height =" wrap_content"
22+ android : background =" @color/colorPrimary"
23+ app : title =" @string/go_to_login"
24+ app : titleTextColor =" @android:color/white" />
2125
2226 <de .hdodenhof.circleimageview.CircleImageView
23- android : layout_width =" wrap_content"
24- android : layout_height =" wrap_content"
25- android : src = " @mipmap/ic_github "
26- android : layout_gravity = " center_horizontal "
27- android : layout_marginTop = " 80dp " />
27+ android : layout_width =" wrap_content"
28+ android : layout_height =" wrap_content"
29+ android : layout_gravity = " center_horizontal "
30+ android : layout_marginTop = " 80dp "
31+ android : src = " @mipmap/ic_github " />
2832
2933 <com .google.android.material.textfield.TextInputLayout
30- android : id =" @+id/mUserNameInputLayout"
31- android : layout_width =" match_parent"
32- android : layout_height =" wrap_content"
33- android : layout_marginLeft =" 20dp"
34- android : layout_marginRight =" 20dp"
35- android : layout_marginTop =" 20dp" >
34+ android : id =" @+id/mUserNameInputLayout"
35+ android : layout_width =" match_parent"
36+ android : layout_height =" wrap_content"
37+ android : layout_marginLeft =" 20dp"
38+ android : layout_marginTop =" 20dp"
39+ android : layout_marginRight =" 20dp" >
3640
3741 <com .google.android.material.textfield.TextInputEditText
38- android : id =" @+id/mUserNameEditText"
39- android : layout_width =" match_parent"
40- android : layout_height =" match_parent"
41- android : hint =" Username"
42- android : singleLine =" true"
43- android : text =" @={userLoginModel.username}" />
42+ android : id =" @+id/mUserNameEditText"
43+ android : layout_width =" match_parent"
44+ android : layout_height =" match_parent"
45+ android : hint =" Username"
46+ android : singleLine =" true"
47+ android : text =" @={userLoginModel.username}" />
4448 </com .google.android.material.textfield.TextInputLayout>
4549
4650 <com .google.android.material.textfield.TextInputLayout
47- android : id =" @+id/mPasswordInputLayout"
48- android : layout_width =" match_parent"
49- android : layout_height =" wrap_content"
50- android : layout_marginLeft =" 20dp"
51- android : layout_marginRight =" 20dp"
52- android : layout_marginTop =" 20dp"
53- app : passwordToggleEnabled =" true" >
51+ android : id =" @+id/mPasswordInputLayout"
52+ android : layout_width =" match_parent"
53+ android : layout_height =" wrap_content"
54+ android : layout_marginLeft =" 20dp"
55+ android : layout_marginTop =" 20dp"
56+ android : layout_marginRight =" 20dp"
57+ app : passwordToggleEnabled =" true" >
5458
5559 <com .google.android.material.textfield.TextInputEditText
56- android : id =" @+id/mPasswordEditText"
57- android : layout_width =" match_parent"
58- android : layout_height =" match_parent"
59- android : inputType = " textPassword "
60- android : hint = " Password "
61- android : singleLine =" true"
62- android : text =" @={userLoginModel.password}" />
60+ android : id =" @+id/mPasswordEditText"
61+ android : layout_width =" match_parent"
62+ android : layout_height =" match_parent"
63+ android : hint = " Password "
64+ android : inputType = " textPassword "
65+ android : singleLine =" true"
66+ android : text =" @={userLoginModel.password}" />
6367 </com .google.android.material.textfield.TextInputLayout>
6468
6569 <Button
66- android : id =" @+id/mSignInBt"
67- android : layout_width =" match_parent"
68- android : layout_height =" 44dp"
69- android : text = " Sign in "
70- android : layout_marginLeft = " 20dp "
71- android : layout_marginRight =" 20dp"
72- android : layout_marginTop = " 35dp "
73- android : background = " @drawable/selector_login_bg "
74- android : textColor = " @drawable/selector_login_text_color "
75- android : textSize = " 16sp "
76- android : textAllCaps = " false " />
70+ android : id =" @+id/mSignInBt"
71+ android : layout_width =" match_parent"
72+ android : layout_height =" 44dp"
73+ android : layout_marginLeft = " 20dp "
74+ android : layout_marginTop = " 35dp "
75+ android : layout_marginRight =" 20dp"
76+ android : background = " @drawable/selector_login_bg "
77+ android : text = " Sign in "
78+ android : textAllCaps = " false "
79+ android : textColor = " @drawable/selector_login_text_color "
80+ android : textSize = " 16sp " />
7781
7882 <ProgressBar
79- android : id =" @+id/mProgressBar"
80- android : layout_width =" wrap_content"
81- android : layout_height =" wrap_content"
82- android : layout_gravity =" center_horizontal"
83- android : layout_marginTop =" 35dp"
84- android : visibility =" gone" />
83+ android : id =" @+id/mProgressBar"
84+ android : layout_width =" wrap_content"
85+ android : layout_height =" wrap_content"
86+ android : layout_gravity =" center_horizontal"
87+ android : layout_marginTop =" 35dp"
88+ android : visibility =" gone" />
8589
8690 </LinearLayout >
8791</layout >
0 commit comments