6
6
android : layout_height =" match_parent"
7
7
tools : context =" .MainActivity" >
8
8
9
- <TableLayout
10
- android : layout_width =" match_parent"
11
- android : layout_height =" wrap_content"
12
- android : layout_marginTop =" 120dp"
13
- android : orientation =" vertical"
14
- app : layout_constraintTop_toTopOf =" parent" >
15
9
10
+ <TableLayout
11
+ android : layout_width =" match_parent"
12
+ android : layout_height =" wrap_content"
13
+ android : layout_marginTop =" 120dp"
14
+ android : orientation =" vertical"
15
+ app : layout_constraintTop_toTopOf =" parent"
16
+ app : layout_constraintStart_toEndOf =" parent"
17
+ android : stretchColumns =" 0" >
16
18
17
- <TableRow >
18
19
19
- <com .google.android.material.textfield.TextInputLayout
20
- android : layout_width =" match_parent"
21
- android : layout_height =" wrap_content"
22
- android : layout_marginStart =" 65dp"
23
- android : layout_marginTop =" 20dp"
24
- android : layout_marginEnd =" 65dp"
20
+ <TableRow >
25
21
26
- android : hint =" Username" >
22
+ <com .google.android.material.textfield.TextInputLayout
23
+ android : layout_width =" fill_parent"
24
+ android : layout_height =" wrap_content"
25
+ android : layout_marginStart =" 65dp"
26
+ android : layout_marginTop =" 20dp"
27
+ android : layout_marginEnd =" 65dp"
28
+
29
+ android : hint =" Username" >
30
+
31
+ <com .google.android.material.textfield.TextInputEditText
32
+ android : id =" @+id/usernameInput"
33
+ android : layout_width =" match_parent"
34
+ android : layout_height =" wrap_content"
35
+
36
+ android : ems =" 15"
37
+ android : inputType =" text" />
38
+ </com .google.android.material.textfield.TextInputLayout>
39
+ </TableRow >
40
+
41
+ <TableRow >
27
42
28
- <com .google.android.material.textfield.TextInputEditText
29
- android : id =" @+id/usernameInput"
43
+ <com .google.android.material.textfield.TextInputLayout
30
44
android : layout_width =" wrap_content"
31
45
android : layout_height =" wrap_content"
32
- android : ems =" 15"
33
- android : inputType =" text" />
34
- </com .google.android.material.textfield.TextInputLayout>
35
- </TableRow >
36
-
37
- <TableRow >
38
-
39
- <com .google.android.material.textfield.TextInputLayout
40
- android : layout_width =" match_parent"
41
- android : layout_height =" wrap_content"
42
- android : layout_marginStart =" 65dp"
43
- android : layout_marginTop =" 20dp"
44
- android : layout_marginEnd =" 65dp"
45
- android : hint =" Password"
46
- app : passwordToggleEnabled =" true" >
47
-
48
- <com .google.android.material.textfield.TextInputEditText
49
- android : id =" @+id/passwordInput"
46
+ android : layout_marginStart =" 65dp"
47
+ android : layout_marginTop =" 20dp"
48
+ android : layout_marginEnd =" 65dp"
49
+ android : hint =" Password"
50
+ app : passwordToggleEnabled =" true" >
51
+
52
+ <com .google.android.material.textfield.TextInputEditText
53
+ android : id =" @+id/passwordInput"
54
+ android : layout_width =" match_parent"
55
+ android : layout_height =" wrap_content"
56
+ android : ems =" 15"
57
+ android : inputType =" textPassword" />
58
+ </com .google.android.material.textfield.TextInputLayout>
59
+ </TableRow >
60
+
61
+ <TableRow >
62
+
63
+ <Switch
64
+ android : id =" @+id/safeSwitch"
50
65
android : layout_width =" wrap_content"
51
66
android : layout_height =" wrap_content"
52
- android : ems =" 15"
53
- android : inputType =" textPassword" />
54
- </com .google.android.material.textfield.TextInputLayout>
55
- </TableRow >
56
-
57
- <TableRow >
58
-
59
- <Switch
60
- android : id =" @+id/safeSwitch"
61
- android : layout_width =" wrap_content"
62
- android : layout_height =" wrap_content"
63
- android : layout_marginStart =" 65dp"
64
- android : layout_marginTop =" 10dp"
65
- android : layout_marginEnd =" 65dp"
66
- android : clickable =" true"
67
- android : fontFamily =" sans-serif-medium"
68
- android : text =" Safe Mode"
69
- android : textAllCaps =" false"
70
- android : textSize =" 16sp"
71
- android : textStyle =" italic" />
72
- </TableRow >
73
-
74
- <TableRow >
75
-
76
- <Button
77
- android : id =" @+id/signinButton"
78
- android : layout_width =" wrap_content"
79
- android : layout_height =" wrap_content"
80
- android : layout_marginStart =" 65dp"
81
- android : layout_marginTop =" 10dp"
82
- android : layout_marginEnd =" 65dp"
83
- android : onClick =" signOnClick"
84
- android : text =" Sign in" />
85
- </TableRow >
86
-
87
- <TableRow >
88
-
89
- <Button
90
- android : id =" @+id/resetButton"
91
- android : layout_width =" wrap_content"
92
- android : layout_height =" wrap_content"
93
- android : layout_marginStart =" 65dp"
94
- android : layout_marginTop =" 0dp"
95
- android : layout_marginEnd =" 65dp"
96
- android : onClick =" resetOnClick"
97
- android : text =" Reset" />
98
- </TableRow >
99
-
100
- <TableRow >
101
-
102
- <Button
103
- android : id =" @+id/exitButton"
104
- android : layout_width =" wrap_content"
105
- android : layout_height =" wrap_content"
106
- android : layout_marginStart =" 65dp"
107
- android : layout_marginTop =" 0dp"
108
- android : layout_marginEnd =" 65dp"
109
- android : onClick =" exitOnClick"
110
- android : text =" Exit" />
111
- </TableRow >
112
-
113
-
114
- </TableLayout >
67
+ android : layout_marginStart =" 65dp"
68
+ android : layout_marginTop =" 10dp"
69
+ android : layout_marginEnd =" 65dp"
70
+ android : clickable =" true"
71
+ android : fontFamily =" sans-serif-medium"
72
+ android : text =" Safe Mode"
73
+ android : textAllCaps =" false"
74
+ android : textSize =" 16sp"
75
+ android : textStyle =" italic"
76
+ tools : ignore =" UseSwitchCompatOrMaterialXml"
77
+ android : focusable =" true" />
78
+ </TableRow >
79
+
80
+ <TableRow >
81
+
82
+ <Button
83
+ android : id =" @+id/signinButton"
84
+ android : layout_width =" wrap_content"
85
+ android : layout_height =" wrap_content"
86
+ android : layout_marginStart =" 65dp"
87
+ android : layout_marginTop =" 10dp"
88
+ android : layout_marginEnd =" 65dp"
89
+ android : onClick =" signOnClick"
90
+
91
+ android : text =" Sign in" />
92
+ </TableRow >
93
+
94
+ <TableRow >
95
+
96
+ <Button
97
+ android : id =" @+id/resetButton"
98
+ android : layout_width =" wrap_content"
99
+ android : layout_height =" wrap_content"
100
+ android : layout_marginStart =" 65dp"
101
+ android : layout_marginTop =" 0dp"
102
+ android : layout_marginEnd =" 65dp"
103
+ android : onClick =" resetOnClick"
104
+ android : text =" Reset" />
105
+ </TableRow >
106
+
107
+ <TableRow >
108
+
109
+ <Button
110
+ android : id =" @+id/exitButton"
111
+ android : layout_width =" wrap_content"
112
+ android : layout_height =" wrap_content"
113
+ android : layout_marginStart =" 65dp"
114
+ android : layout_marginTop =" 0dp"
115
+ android : layout_marginEnd =" 65dp"
116
+ android : onClick =" exitOnClick"
117
+ android : text =" Exit" />
118
+ </TableRow >
119
+
120
+
121
+ </TableLayout >
122
+
115
123
116
124
</androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments