1- <?xml version =" 1.0" encoding =" utf-8" ?>
2- <RelativeLayout
3- xmlns : android =" http://schemas.android.com/apk/res/android"
4- xmlns : app =" http://schemas.android.com/apk/res-auto"
5- android : id =" @+id/layout_login"
6- xmlns : tools =" http://schemas.android.com/tools"
7- style =" @style/Match" >
8-
9- <ScrollView
10- android : layout_width =" match_parent"
11- android : id =" @+id/scroll"
12- android : layout_height =" match_parent" >
13-
14- <LinearLayout
15- android : layout_width =" match_parent"
16- android : layout_height =" 0dp"
17- android : fitsSystemWindows =" true"
18- android : gravity =" center_horizontal"
19- android : layout_marginStart =" 35dp"
20- android : layout_marginEnd =" 35dp"
21- android : paddingBottom =" 30dp"
22- android : layout_marginBottom =" 35dp"
23- android : focusableInTouchMode =" true"
24- android : orientation =" vertical" >
25-
26- <ImageView
27- android : id =" @+id/image_logo"
28- android : layout_width =" 100dp"
29- android : layout_height =" 100dp"
30- android : layout_marginEnd =" 0dp"
31- android : layout_marginTop =" 70dp"
32- app : srcCompat =" @mipmap/ic_launcher"
33- tools : ignore =" ContentDescription" />
34-
35- <LinearLayout
36- android : layout_width =" wrap_content"
37- android : layout_height =" wrap_content"
38- android : id =" @+id/linear_spinner"
39- android : layout_marginTop =" 48dp"
40- android : gravity =" center"
41- android : orientation =" horizontal" >
42-
43- <TextView
44- android : layout_width =" wrap_content"
45- android : layout_height =" wrap_content"
46- android : text =" @string/select_type"
47- android : textColor =" @color/colorWhite"
48- android : textAppearance =" ?android:attr/textAppearanceMedium" />
49-
50- <com .jaredrummler.materialspinner.MaterialSpinner
51- android : layout_width =" 100dp"
52- android : layout_height =" 40dp"
53- android : id =" @+id/spinner_type"
54- app : ms_text_color =" @color/colorPrimary"
55- app : ms_arrow_tint =" @color/colorPrimary"
56- android : layout_marginStart =" 10dp"
57- tools : ignore =" MissingConstraints" />
58-
59- </LinearLayout >
60-
61- <EditText
62- android : id =" @+id/edit_new_child"
63- android : layout_width =" match_parent"
64- android : layout_height =" 48dp"
65- android : layout_marginEnd =" 4dp"
66- android : layout_marginStart =" 4dp"
67- android : layout_marginTop =" 10dp"
68- android : background =" @drawable/border_login"
69- android : drawablePadding =" 8dp"
70- android : drawableStart =" @drawable/ic_child_care_black_24dp"
71- android : hint =" @string/new_or_current_child"
72- android : visibility =" gone"
73- android : imeOptions =" actionNext"
74- android : inputType =" text"
75- android : maxLines =" 1"
76- android : padding =" 8dp"
77- android : textColor =" @color/colorTextPrimaryDark"
78- android : textColorHint =" @color/colorHintDark" />
79-
80- <EditText
81- android : id =" @+id/edit_login_email"
82- android : layout_width =" match_parent"
83- android : layout_height =" 48dp"
84- android : layout_marginEnd =" 4dp"
85- android : layout_marginStart =" 4dp"
86- android : layout_marginTop =" 20dp"
87- android : background =" @drawable/border_login"
88- android : drawablePadding =" 8dp"
89- android : drawableStart =" @drawable/ic_user_alert"
90- android : hint =" @string/login_hint_user"
91- android : imeOptions =" actionNext"
92- android : inputType =" textEmailAddress"
93- android : maxLines =" 1"
94- android : padding =" 8dp"
95- android : textColor =" @color/colorTextPrimaryDark"
96- android : textColorHint =" @color/colorHintDark" />
97-
98- <EditText
99- android : id =" @+id/edit_login_password"
100- android : layout_width =" match_parent"
101- android : layout_height =" 48dp"
102- android : layout_marginEnd =" 4dp"
103- android : layout_marginStart =" 4dp"
104- android : layout_marginTop =" 16dp"
105- android : background =" @drawable/border_login"
106- android : drawablePadding =" 8dp"
107- android : drawableStart =" @drawable/ic_lock"
108- android : hint =" @string/login_hint_passw"
109- android : imeOptions =" actionDone"
110- android : inputType =" textPassword"
111- android : maxLines =" 1"
112- android : padding =" 8dp"
113- android : textColor =" @color/colorTextPrimaryDark"
114- android : textColorHint =" @color/colorHintDark" />
115-
116-
117- <Button
118- android : id =" @+id/btn_login_signin"
119- android : layout_width =" match_parent"
120- android : layout_height =" 56dp"
121- android : layout_marginTop =" 24dp"
122- android : backgroundTint =" @color/colorAccent"
123- android : enabled =" false"
124- android : text =" @string/login_btn_sign_in"
125- android : textAllCaps =" false"
126- android : textColor =" @android:color/white" />
127-
128- <Button
129- android : id =" @+id/txt_login_signup"
130- android : layout_width =" match_parent"
131- android : gravity =" center"
132- android : layout_height =" 56dp"
133- android : backgroundTint =" @color/colorAccent"
134- android : text =" @string/login_btn_sign_up"
135- android : textAllCaps =" false"
136- android : visibility =" gone"
137- android : layout_marginTop =" 20dp"
138- android : drawablePadding =" -30dp"
139- android : drawableEnd =" @drawable/ic_arrow_forward_white_24dp"
140- android : textColor =" @android:color/white" />
141-
142- </LinearLayout >
143-
144- </ScrollView >
145-
146- </RelativeLayout >
1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <androidx .constraintlayout.widget.ConstraintLayout
3+ xmlns : android =" http://schemas.android.com/apk/res/android"
4+ xmlns : app =" http://schemas.android.com/apk/res-auto"
5+ xmlns : tools =" http://schemas.android.com/tools"
6+ android : layout_width =" match_parent"
7+ android : layout_height =" match_parent"
8+ android : background =" ?attr/colorSurface"
9+ tools : context =" .ui.activities.login.LoginActivity" >
10+
11+ <com .google.android.material.card.MaterialCardView
12+ android : id =" @+id/loginCard"
13+ android : layout_width =" 0dp"
14+ android : layout_height =" wrap_content"
15+ android : layout_marginHorizontal =" 32dp"
16+ app : cardCornerRadius =" 16dp"
17+ app : cardElevation =" 8dp"
18+ app : layout_constraintBottom_toBottomOf =" parent"
19+ app : layout_constraintEnd_toEndOf =" parent"
20+ app : layout_constraintStart_toStartOf =" parent"
21+ app : layout_constraintTop_toTopOf =" parent" >
22+
23+ <LinearLayout
24+ android : layout_width =" match_parent"
25+ android : layout_height =" wrap_content"
26+ android : orientation =" vertical"
27+ android : padding =" 24dp" >
28+
29+ <com .google.android.material.textfield.TextInputLayout
30+ android : id =" @+id/emailInputLayout"
31+ android : layout_width =" match_parent"
32+ android : layout_height =" wrap_content"
33+ android : layout_marginBottom =" 16dp"
34+ android : hint =" @string/login_hint_user"
35+ app : boxStrokeColor =" ?attr/colorPrimary"
36+ app : hintTextColor =" ?attr/colorPrimary" >
37+
38+ <com .google.android.material.textfield.TextInputEditText
39+ android : id =" @+id/emailEditText"
40+ android : layout_width =" match_parent"
41+ android : layout_height =" wrap_content"
42+ android : inputType =" textEmailAddress" />
43+
44+ </com .google.android.material.textfield.TextInputLayout>
45+
46+ <com .google.android.material.textfield.TextInputLayout
47+ android : id =" @+id/passwordInputLayout"
48+ android : layout_width =" match_parent"
49+ android : layout_height =" wrap_content"
50+ android : layout_marginBottom =" 24dp"
51+ android : hint =" @string/login_hint_passw"
52+ app : boxStrokeColor =" ?attr/colorPrimary"
53+ app : endIconMode =" password_toggle"
54+ app : hintTextColor =" ?attr/colorPrimary" >
55+
56+ <com .google.android.material.textfield.TextInputEditText
57+ android : id =" @+id/passwordEditText"
58+ android : layout_width =" match_parent"
59+ android : layout_height =" wrap_content"
60+ android : inputType =" textPassword" />
61+
62+ </com .google.android.material.textfield.TextInputLayout>
63+
64+ <com .google.android.material.button.MaterialButton
65+ android : id =" @+id/loginButton"
66+ android : layout_width =" match_parent"
67+ android : layout_height =" 56dp"
68+ android : text =" @string/login_btn_sign_in"
69+ app : cornerRadius =" 8dp" />
70+
71+ <com .google.android.material.button.MaterialButton
72+ android : id =" @+id/biometricButton"
73+ style =" @style/Widget.Material3.Button.TextButton"
74+ android : layout_width =" match_parent"
75+ android : layout_height =" wrap_content"
76+ android : layout_marginTop =" 8dp"
77+ android : text =" @string/biometric_prompt_title" />
78+
79+ </LinearLayout >
80+
81+ </com .google.android.material.card.MaterialCardView>
82+
83+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments