|
27 | 27 | android:id="@+id/express_login_title" |
28 | 28 | android:layout_width="0dp" |
29 | 29 | android:layout_height="wrap_content" |
30 | | - android:layout_marginTop="@dimen/reg_24dp" |
31 | 30 | android:fontFamily="@font/ibm_plex_sans_bold" |
32 | 31 | android:gravity="center" |
33 | 32 | android:text="@string/xpress_login" |
34 | 33 | android:textColor="@color/colorWhite" |
35 | 34 | android:textSize="@dimen/text_size_24" |
| 35 | + app:layout_constraintBottom_toTopOf="@id/manual_login_container" |
36 | 36 | app:layout_constraintEnd_toEndOf="@id/guide_end" |
37 | 37 | app:layout_constraintStart_toStartOf="@id/guide_start" |
38 | | - app:layout_constraintTop_toTopOf="parent" /> |
| 38 | + app:layout_constraintTop_toTopOf="parent" |
| 39 | + app:layout_constraintVertical_chainStyle="packed" /> |
39 | 40 |
|
40 | 41 |
|
41 | 42 | <LinearLayout |
|
45 | 46 | android:layout_marginTop="@dimen/reg_32dp" |
46 | 47 | android:gravity="center_horizontal" |
47 | 48 | android:orientation="vertical" |
| 49 | + app:layout_constraintBottom_toBottomOf="parent" |
48 | 50 | app:layout_constraintEnd_toEndOf="@id/guide_end" |
49 | 51 | app:layout_constraintStart_toStartOf="@id/guide_start" |
50 | 52 | app:layout_constraintTop_toBottomOf="@id/express_login_title"> |
|
54 | 56 | android:layout_width="match_parent" |
55 | 57 | android:text="@string/web_login_description" /> |
56 | 58 |
|
57 | | - <TextView |
58 | | - style="@style/loginDescriptionStyle" |
59 | | - android:layout_width="match_parent" |
60 | | - android:layout_marginTop="@dimen/reg_24dp" |
61 | | - android:fontFamily="@font/ibm_plex_sans_bold" |
62 | | - android:text="@string/or" /> |
63 | | - |
64 | | - <TextView |
65 | | - style="@style/loginDescriptionStyle" |
66 | | - android:layout_width="match_parent" |
67 | | - android:layout_marginTop="@dimen/reg_40dp" |
68 | | - android:text="@string/app_login_description" /> |
69 | | - |
70 | 59 | <Button |
71 | 60 | android:id="@+id/generate_code" |
72 | 61 | style="@style/LoginButtonStyle" |
|
81 | 70 | <LinearLayout |
82 | 71 | android:id="@+id/qr_login_container" |
83 | 72 | android:layout_width="0dp" |
84 | | - android:layout_height="wrap_content" |
85 | | - android:layout_marginStart="@dimen/reg_16dp" |
86 | | - android:layout_marginTop="@dimen/reg_8dp" |
87 | | - android:layout_marginEnd="@dimen/reg_16dp" |
88 | | - android:gravity="center_vertical" |
89 | | - android:orientation="horizontal" |
| 73 | + android:layout_height="0dp" |
| 74 | + android:gravity="center" |
| 75 | + android:orientation="vertical" |
90 | 76 | android:visibility="gone" |
91 | | - app:layout_constraintEnd_toEndOf="parent" |
92 | | - app:layout_constraintStart_toStartOf="parent" |
93 | | - app:layout_constraintTop_toBottomOf="@id/express_login_title"> |
| 77 | + app:layout_constraintBottom_toBottomOf="parent" |
| 78 | + app:layout_constraintEnd_toEndOf="@id/guide_end" |
| 79 | + app:layout_constraintStart_toStartOf="@id/guide_start" |
| 80 | + app:layout_constraintTop_toTopOf="parent" |
| 81 | + > |
94 | 82 |
|
95 | | - <LinearLayout |
96 | | - android:layout_width="384dp" |
| 83 | + <TextView |
| 84 | + android:layout_width="match_parent" |
97 | 85 | android:layout_height="wrap_content" |
98 | | - android:gravity="center_horizontal" |
99 | | - android:orientation="vertical"> |
| 86 | + android:fontFamily="@font/ibm_plex_sans_regular" |
| 87 | + android:gravity="center" |
| 88 | + android:text="@string/scan_lazy_login_qr_code" |
| 89 | + android:textColor="@color/colorWhite50" |
| 90 | + android:textSize="21sp" /> |
100 | 91 |
|
101 | | - <TextView |
102 | | - style="@style/loginDescriptionStyle" |
103 | | - android:layout_width="match_parent" |
104 | | - android:text="@string/scan_lazy_login_qr_code" /> |
105 | | - |
106 | | - <FrameLayout |
107 | | - android:layout_width="384dp" |
108 | | - android:layout_height="384dp" |
109 | | - android:layout_marginTop="@dimen/reg_12dp"> |
110 | | - |
111 | | - <ImageView |
112 | | - android:id="@+id/qr_code" |
113 | | - android:layout_width="match_parent" |
114 | | - android:layout_height="match_parent" |
115 | | - android:background="@color/colorWhite" |
116 | | - android:contentDescription="@string/scan_lazy_login_qr_code" |
117 | | - android:padding="@dimen/reg_8dp" |
118 | | - android:scaleType="fitCenter" /> |
119 | | - |
120 | | - <ProgressBar |
121 | | - android:id="@+id/qr_loading" |
122 | | - android:layout_width="wrap_content" |
123 | | - android:layout_height="wrap_content" |
124 | | - android:layout_gravity="center" |
125 | | - android:visibility="gone" /> |
126 | | - |
127 | | - <LinearLayout |
128 | | - android:id="@+id/qr_error_container" |
129 | | - android:layout_width="match_parent" |
130 | | - android:layout_height="match_parent" |
131 | | - android:background="@color/colorWhite" |
132 | | - android:gravity="center" |
133 | | - android:orientation="vertical" |
134 | | - android:padding="@dimen/reg_16dp" |
135 | | - android:visibility="gone"> |
136 | | - |
137 | | - <TextView |
138 | | - android:id="@+id/qr_error_message" |
139 | | - android:layout_width="wrap_content" |
140 | | - android:layout_height="wrap_content" |
141 | | - android:gravity="center" |
142 | | - android:text="@string/qr_generation_failed" |
143 | | - android:textColor="@color/colorBlack" |
144 | | - android:textSize="@dimen/text_size_16" /> |
145 | | - |
146 | | - <Button |
147 | | - android:id="@+id/qr_retry_button" |
148 | | - style="@style/LoginButtonStyle" |
149 | | - android:layout_width="wrap_content" |
150 | | - android:layout_height="wrap_content" |
151 | | - android:layout_marginTop="@dimen/reg_16dp" |
152 | | - android:text="@string/retry" /> |
153 | | - |
154 | | - </LinearLayout> |
155 | | - |
156 | | - </FrameLayout> |
157 | | - |
158 | | - <androidx.appcompat.widget.AppCompatTextView |
159 | | - android:id="@+id/secret_code" |
160 | | - style="@style/secretCodeStyle" |
161 | | - android:layout_marginTop="@dimen/reg_16dp" |
162 | | - android:fontFamily="@font/ibm_plex_sans_bold" |
163 | | - android:visibility="visible" /> |
164 | | - |
165 | | - </LinearLayout> |
166 | | - |
167 | | - <LinearLayout |
168 | | - android:layout_width="0dp" |
| 92 | + <TextView |
| 93 | + android:layout_width="match_parent" |
169 | 94 | android:layout_height="wrap_content" |
170 | | - android:layout_marginStart="@dimen/reg_24dp" |
171 | | - android:layout_weight="1" |
172 | | - android:gravity="center_horizontal" |
173 | | - android:orientation="vertical"> |
174 | | - |
175 | | - <TextView |
176 | | - style="@style/loginDescriptionStyle" |
177 | | - android:layout_width="match_parent" |
178 | | - android:layout_marginTop="@dimen/reg_24dp" |
179 | | - android:fontFamily="@font/ibm_plex_sans_bold" |
180 | | - android:text="@string/or" /> |
| 95 | + android:layout_marginTop="@dimen/reg_16dp" |
| 96 | + android:fontFamily="@font/ibm_plex_sans_bold" |
| 97 | + android:gravity="center" |
| 98 | + android:text="@string/or" |
| 99 | + android:textColor="@color/colorWhite50" |
| 100 | + android:textSize="21sp" /> |
181 | 101 |
|
182 | | - <TextView |
183 | | - style="@style/loginDescriptionStyle" |
| 102 | + <TextView |
| 103 | + android:layout_width="match_parent" |
| 104 | + android:layout_height="wrap_content" |
| 105 | + android:layout_marginTop="@dimen/reg_8dp" |
| 106 | + android:fontFamily="@font/ibm_plex_sans_regular" |
| 107 | + android:gravity="center" |
| 108 | + android:text="@string/app_login_manual_entry" |
| 109 | + android:textColor="@color/colorWhite50" |
| 110 | + android:textSize="21sp" /> |
| 111 | + |
| 112 | + <FrameLayout |
| 113 | + android:id="@+id/qr_frame" |
| 114 | + android:layout_width="225dp" |
| 115 | + android:layout_height="225dp" |
| 116 | + android:layout_marginTop="@dimen/reg_24dp"> |
| 117 | + |
| 118 | + <ImageView |
| 119 | + android:id="@+id/qr_code" |
184 | 120 | android:layout_width="match_parent" |
185 | | - android:layout_marginTop="@dimen/reg_24dp" |
186 | | - android:text="@string/manual_enter_code" /> |
| 121 | + android:layout_height="match_parent" |
| 122 | + android:background="@color/colorWhite" |
| 123 | + android:contentDescription="@string/scan_lazy_login_qr_code" |
| 124 | + android:padding="@dimen/reg_8dp" |
| 125 | + android:scaleType="fitCenter" /> |
| 126 | + |
| 127 | + <ProgressBar |
| 128 | + android:id="@+id/qr_loading" |
| 129 | + android:layout_width="wrap_content" |
| 130 | + android:layout_height="wrap_content" |
| 131 | + android:layout_gravity="center" |
| 132 | + android:visibility="gone" /> |
187 | 133 |
|
188 | | - <androidx.appcompat.widget.AppCompatTextView |
189 | | - android:id="@+id/secret_code_large" |
| 134 | + <LinearLayout |
| 135 | + android:id="@+id/qr_error_container" |
190 | 136 | android:layout_width="match_parent" |
191 | | - android:layout_height="wrap_content" |
192 | | - android:layout_marginTop="@dimen/reg_16dp" |
193 | | - android:fontFamily="@font/ibm_plex_sans_bold" |
| 137 | + android:layout_height="match_parent" |
| 138 | + android:background="@color/colorWhite" |
194 | 139 | android:gravity="center" |
195 | | - android:textColor="@color/colorWhite" |
196 | | - android:textSize="@dimen/text_size_32" |
197 | | - android:letterSpacing="0.1" /> |
| 140 | + android:orientation="vertical" |
| 141 | + android:padding="@dimen/reg_16dp" |
| 142 | + android:visibility="gone"> |
198 | 143 |
|
199 | | - <TextView |
200 | | - style="@style/loginDescriptionStyle" |
201 | | - android:layout_width="match_parent" |
202 | | - android:layout_marginTop="@dimen/reg_24dp" |
203 | | - android:text="@string/app_login_manual_entry" /> |
| 144 | + <TextView |
| 145 | + android:id="@+id/qr_error_message" |
| 146 | + android:layout_width="wrap_content" |
| 147 | + android:layout_height="wrap_content" |
| 148 | + android:gravity="center" |
| 149 | + android:text="@string/qr_generation_failed" |
| 150 | + android:textColor="@color/colorBlack" |
| 151 | + android:textSize="@dimen/text_size_16" /> |
| 152 | + |
| 153 | + <Button |
| 154 | + android:id="@+id/qr_retry_button" |
| 155 | + style="@style/LoginButtonStyle" |
| 156 | + android:layout_width="wrap_content" |
| 157 | + android:layout_height="wrap_content" |
| 158 | + android:layout_marginTop="@dimen/reg_16dp" |
| 159 | + android:text="@string/retry" /> |
| 160 | + |
| 161 | + </LinearLayout> |
204 | 162 |
|
205 | | - </LinearLayout> |
| 163 | + </FrameLayout> |
| 164 | + |
| 165 | + <androidx.appcompat.widget.AppCompatTextView |
| 166 | + android:id="@+id/secret_code_large" |
| 167 | + android:layout_width="match_parent" |
| 168 | + android:layout_height="wrap_content" |
| 169 | + android:layout_marginTop="@dimen/reg_16dp" |
| 170 | + android:fontFamily="@font/ibm_plex_sans_bold" |
| 171 | + android:gravity="center" |
| 172 | + android:letterSpacing="0.1" |
| 173 | + android:textColor="@color/colorWhite" |
| 174 | + android:textSize="@dimen/text_size_32" /> |
| 175 | + |
| 176 | + <androidx.appcompat.widget.AppCompatTextView |
| 177 | + android:id="@+id/secret_code" |
| 178 | + style="@style/secretCodeStyle" |
| 179 | + android:layout_marginTop="@dimen/reg_8dp" |
| 180 | + android:fontFamily="@font/ibm_plex_sans_bold" |
| 181 | + android:visibility="gone" /> |
206 | 182 |
|
207 | 183 | </LinearLayout> |
208 | 184 |
|
|
0 commit comments