1+ <androidx .constraintlayout.widget.ConstraintLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ xmlns : app =" http://schemas.android.com/apk/res-auto"
3+ xmlns : tools =" http://schemas.android.com/tools"
4+ android : id =" @+id/main"
5+ android : layout_width =" match_parent"
6+ android : layout_height =" match_parent"
7+ tools : context =" .ui.login.LoginActivity" >
8+
9+ <com .google.android.material.textview.MaterialTextView
10+ android : id =" @+id/text_view_title"
11+ android : layout_width =" wrap_content"
12+ android : layout_height =" wrap_content"
13+ android : layout_marginTop =" 64dp"
14+ android : text =" Вход через ITMO.ID"
15+ android : textAppearance =" @style/TextAppearance.Material3.HeadlineSmall"
16+ app : layout_constraintEnd_toEndOf =" parent"
17+ app : layout_constraintStart_toStartOf =" parent"
18+ app : layout_constraintTop_toTopOf =" parent" />
19+
20+ <com .google.android.material.textfield.TextInputLayout
21+ android : id =" @+id/login_input_layout"
22+ style =" @style/Widget.Material3.TextInputLayout.OutlinedBox"
23+ android : layout_width =" 0dp"
24+ android : layout_height =" wrap_content"
25+ android : layout_marginStart =" 32dp"
26+ android : layout_marginTop =" 32dp"
27+ android : layout_marginEnd =" 32dp"
28+ android : hint =" Логин"
29+ app : layout_constraintEnd_toEndOf =" parent"
30+ app : layout_constraintStart_toStartOf =" parent"
31+ app : layout_constraintTop_toBottomOf =" @+id/text_view_title" >
32+
33+ <com .google.android.material.textfield.TextInputEditText
34+ android : id =" @+id/edit_text_login"
35+ android : layout_width =" match_parent"
36+ android : layout_height =" wrap_content"
37+ android : inputType =" text"
38+ android : maxLines =" 1" />
39+
40+ </com .google.android.material.textfield.TextInputLayout>
41+
42+ <com .google.android.material.textfield.TextInputLayout
43+ android : id =" @+id/password_input_layout"
44+ style =" @style/Widget.Material3.TextInputLayout.OutlinedBox"
45+ android : layout_width =" 0dp"
46+ android : layout_height =" wrap_content"
47+ android : layout_marginStart =" 32dp"
48+ android : layout_marginTop =" 16dp"
49+ android : layout_marginEnd =" 32dp"
50+ android : hint =" Пароль"
51+ app : endIconMode =" password_toggle"
52+ app : layout_constraintEnd_toEndOf =" parent"
53+ app : layout_constraintStart_toStartOf =" parent"
54+ app : layout_constraintTop_toBottomOf =" @+id/login_input_layout" >
55+
56+ <com .google.android.material.textfield.TextInputEditText
57+ android : id =" @+id/edit_text_password"
58+ android : layout_width =" match_parent"
59+ android : layout_height =" wrap_content"
60+ android : inputType =" textPassword"
61+ android : maxLines =" 1" />
62+
63+ </com .google.android.material.textfield.TextInputLayout>
64+
65+ <com .google.android.material.button.MaterialButton
66+ android : id =" @+id/button_login"
67+ android : layout_width =" 0dp"
68+ android : layout_height =" wrap_content"
69+ android : layout_marginStart =" 32dp"
70+ android : layout_marginTop =" 24dp"
71+ android : layout_marginEnd =" 32dp"
72+ android : text =" Войти"
73+ app : layout_constraintEnd_toEndOf =" parent"
74+ app : layout_constraintStart_toStartOf =" parent"
75+ app : layout_constraintTop_toBottomOf =" @+id/password_input_layout" />
76+
77+ <com .google.android.material.textview.MaterialTextView
78+ android : id =" @+id/text_view_result"
79+ android : layout_width =" 0dp"
80+ android : layout_height =" wrap_content"
81+ android : layout_marginTop =" 12dp"
82+ android : layout_marginStart =" 24dp"
83+ android : layout_marginEnd =" 24dp"
84+ android : gravity =" center"
85+ android : text =" "
86+ android : textAppearance =" @style/TextAppearance.MaterialComponents.Subtitle1"
87+ app : layout_constraintEnd_toEndOf =" parent"
88+ app : layout_constraintStart_toStartOf =" parent"
89+ app : layout_constraintTop_toBottomOf =" @id/button_login" />
90+
91+ <com .google.android.material.textview.MaterialTextView
92+ android : id =" @+id/text_view_disclaimer"
93+ android : layout_width =" 0dp"
94+ android : layout_height =" wrap_content"
95+ android : layout_marginStart =" 24dp"
96+ android : layout_marginEnd =" 24dp"
97+ android : layout_marginBottom =" 32dp"
98+ android : gravity =" center"
99+ android : text =" Убедитесь, что используете официальную версию приложения с GitHub. Логин и пароль не сохраняются и используются только для получения токена авторизации.\nТакже вы можете напрямую сообщить токен в настройках, без авторизации."
100+ android : textAppearance =" @style/TextAppearance.MaterialComponents.Caption"
101+ app : layout_constraintBottom_toBottomOf =" parent"
102+ app : layout_constraintEnd_toEndOf =" parent"
103+ app : layout_constraintStart_toStartOf =" parent" />
104+
105+ </androidx .constraintlayout.widget.ConstraintLayout>
0 commit comments