Merge branch 'material_buttons' of https://github.com/owncloud/android into material_fab
[pub/Android/ownCloud.git] / res / layout / ssl_untrusted_cert_layout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2015 ownCloud Inc.
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2,
9 as published by the Free Software Foundation.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 android:id="@+id/root"
21 android:layout_width="wrap_content"
22 android:layout_height="wrap_content"
23 android:gravity="center"
24 android:padding="@dimen/standard_padding"
25 android:orientation="vertical" >
26
27 <TextView
28 android:id="@+id/header"
29 android:layout_width="wrap_content"
30 android:layout_height="wrap_content"
31 android:layout_weight="0"
32 android:paddingBottom="@dimen/standard_padding"
33 android:text="@string/ssl_validator_header"
34 android:textAppearance="?android:attr/textAppearanceMedium"
35 android:textColor="@android:color/black"
36 />
37
38 <TextView
39 android:id="@+id/reason_cert_not_trusted"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_weight="0"
43 android:layout_gravity="left"
44 android:paddingLeft="8dp"
45 android:text="@string/ssl_validator_reason_cert_not_trusted"
46 android:textAppearance="?android:attr/textAppearanceSmall"
47 />
48
49
50 <TextView
51 android:id="@+id/reason_cert_expired"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_gravity="left"
55 android:paddingLeft="8dp"
56 android:text="@string/ssl_validator_reason_cert_expired"
57 android:textAppearance="?android:attr/textAppearanceSmall"
58 />
59
60 <TextView
61 android:id="@+id/reason_cert_not_yet_valid"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_gravity="left"
65 android:paddingLeft="8dp"
66 android:text="@string/ssl_validator_reason_cert_not_yet_valid"
67 android:textAppearance="?android:attr/textAppearanceSmall"
68 />
69
70 <TextView
71 android:id="@+id/reason_hostname_not_verified"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_gravity="left"
75 android:paddingLeft="8dp"
76 android:text="@string/ssl_validator_reason_hostname_not_verified"
77 android:textAppearance="?android:attr/textAppearanceSmall"
78 />
79
80 <TextView
81 android:id="@+id/reason_no_info_about_error"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content"
84 android:layout_gravity="left"
85 android:paddingLeft="8dp"
86 android:text="@string/ssl_validator_no_info_about_error"
87 android:textAppearance="?android:attr/textAppearanceSmall"
88 />
89
90 <ScrollView
91 android:id="@+id/details_scroll"
92 android:visibility="gone"
93 android:padding="8dp"
94 android:layout_width="match_parent"
95 android:layout_height="0dp"
96 android:layout_weight="1"
97 >
98
99 <LinearLayout
100 android:id="@+id/details_view"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content"
103 android:gravity="left"
104 android:orientation="vertical" >
105
106 <TextView
107 android:id="@+id/null_cert"
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:layout_gravity="left"
111 android:paddingLeft="20dp"
112 android:text="@string/ssl_validator_null_cert"
113 android:textAppearance="?android:attr/textAppearanceSmall" />
114
115 <TextView
116 android:id="@+id/label_subject"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:paddingBottom="5dp"
120 android:text="@string/ssl_validator_label_subject"
121 android:textAppearance="?android:attr/textAppearanceMedium"
122 />
123
124 <TextView
125 android:id="@+id/label_subject_CN"
126 android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
128 android:text="@string/ssl_validator_label_CN"
129 android:textAppearance="?android:attr/textAppearanceSmall"
130 />
131
132 <TextView
133 android:id="@+id/value_subject_CN"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:paddingBottom="5dp"
137 android:text=""
138 android:textAppearance="?android:attr/textAppearanceSmall"
139 />
140
141 <TextView
142 android:id="@+id/label_subject_O"
143 android:layout_width="wrap_content"
144 android:layout_height="wrap_content"
145 android:text="@string/ssl_validator_label_O"
146 android:textAppearance="?android:attr/textAppearanceSmall"
147 />
148
149 <TextView
150 android:id="@+id/value_subject_O"
151 android:layout_width="wrap_content"
152 android:layout_height="wrap_content"
153 android:paddingBottom="5dp"
154 android:text=""
155 android:textAppearance="?android:attr/textAppearanceSmall"
156 />
157
158 <TextView
159 android:id="@+id/label_subject_OU"
160 android:layout_width="wrap_content"
161 android:layout_height="wrap_content"
162 android:text="@string/ssl_validator_label_OU"
163 android:textAppearance="?android:attr/textAppearanceSmall"
164 />
165
166 <TextView
167 android:id="@+id/value_subject_OU"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:paddingBottom="5dp"
171 android:text=""
172 android:textAppearance="?android:attr/textAppearanceSmall"
173 />
174
175 <TextView
176 android:id="@+id/label_subject_ST"
177 android:layout_width="wrap_content"
178 android:layout_height="wrap_content"
179 android:text="@string/ssl_validator_label_ST"
180 android:textAppearance="?android:attr/textAppearanceSmall"
181 />
182
183 <TextView
184 android:id="@+id/value_subject_ST"
185 android:layout_width="wrap_content"
186 android:layout_height="wrap_content"
187 android:paddingBottom="5dp"
188 android:text=""
189 android:textAppearance="?android:attr/textAppearanceSmall"
190 />
191
192 <TextView
193 android:id="@+id/label_subject_C"
194 android:layout_width="wrap_content"
195 android:layout_height="wrap_content"
196 android:text="@string/ssl_validator_label_C"
197 android:textAppearance="?android:attr/textAppearanceSmall"
198 />
199
200 <TextView
201 android:id="@+id/value_subject_C"
202 android:layout_width="wrap_content"
203 android:layout_height="wrap_content"
204 android:paddingBottom="5dp"
205 android:text=""
206 android:textAppearance="?android:attr/textAppearanceSmall"
207 />
208
209 <TextView
210 android:id="@+id/label_subject_L"
211 android:layout_width="wrap_content"
212 android:layout_height="wrap_content"
213 android:text="@string/ssl_validator_label_L"
214 android:textAppearance="?android:attr/textAppearanceSmall"
215 />
216
217 <TextView
218 android:id="@+id/value_subject_L"
219 android:layout_width="wrap_content"
220 android:layout_height="wrap_content"
221 android:paddingBottom="5dp"
222 android:text=""
223 android:textAppearance="?android:attr/textAppearanceSmall"
224 />
225
226
227 <TextView
228 android:id="@+id/label_issuer"
229 android:layout_width="wrap_content"
230 android:layout_height="wrap_content"
231 android:paddingBottom="5dp"
232 android:text="@string/ssl_validator_label_issuer"
233 android:textAppearance="?android:attr/textAppearanceMedium"
234 />
235
236 <TextView
237 android:id="@+id/label_issuer_CN"
238 android:layout_width="wrap_content"
239 android:layout_height="wrap_content"
240 android:text="@string/ssl_validator_label_CN"
241 android:textAppearance="?android:attr/textAppearanceSmall"
242 />
243
244 <TextView
245 android:id="@+id/value_issuer_CN"
246 android:layout_width="wrap_content"
247 android:layout_height="wrap_content"
248 android:paddingBottom="5dp"
249 android:text=""
250 android:textAppearance="?android:attr/textAppearanceSmall"
251 />
252
253 <TextView
254 android:id="@+id/label_issuer_O"
255 android:layout_width="wrap_content"
256 android:layout_height="wrap_content"
257 android:text="@string/ssl_validator_label_O"
258 android:textAppearance="?android:attr/textAppearanceSmall"
259 />
260
261 <TextView
262 android:id="@+id/value_issuer_O"
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:paddingBottom="5dp"
266 android:text=""
267 android:textAppearance="?android:attr/textAppearanceSmall"
268 />
269
270 <TextView
271 android:id="@+id/label_issuer_OU"
272 android:layout_width="wrap_content"
273 android:layout_height="wrap_content"
274 android:text="@string/ssl_validator_label_OU"
275 android:textAppearance="?android:attr/textAppearanceSmall"
276 />
277
278 <TextView
279 android:id="@+id/value_issuer_OU"
280 android:layout_width="wrap_content"
281 android:layout_height="wrap_content"
282 android:paddingBottom="5dp"
283 android:text=""
284 android:textAppearance="?android:attr/textAppearanceSmall"
285 />
286
287 <TextView
288 android:id="@+id/label_issuer_ST"
289 android:layout_width="wrap_content"
290 android:layout_height="wrap_content"
291 android:text="@string/ssl_validator_label_ST"
292 android:textAppearance="?android:attr/textAppearanceSmall"
293 />
294
295 <TextView
296 android:id="@+id/value_issuer_ST"
297 android:layout_width="wrap_content"
298 android:layout_height="wrap_content"
299 android:paddingBottom="5dp"
300 android:text=""
301 android:textAppearance="?android:attr/textAppearanceSmall"
302 />
303
304 <TextView
305 android:id="@+id/label_issuer_C"
306 android:layout_width="wrap_content"
307 android:layout_height="wrap_content"
308 android:text="@string/ssl_validator_label_C"
309 android:textAppearance="?android:attr/textAppearanceSmall"
310 />
311
312 <TextView
313 android:id="@+id/value_issuer_C"
314 android:layout_width="wrap_content"
315 android:layout_height="wrap_content"
316 android:paddingBottom="5dp"
317 android:text=""
318 android:textAppearance="?android:attr/textAppearanceSmall"
319 />
320
321 <TextView
322 android:id="@+id/label_issuer_L"
323 android:layout_width="wrap_content"
324 android:layout_height="wrap_content"
325 android:text="@string/ssl_validator_label_L"
326 android:textAppearance="?android:attr/textAppearanceSmall"
327 />
328
329 <TextView
330 android:id="@+id/value_issuer_L"
331 android:layout_width="wrap_content"
332 android:layout_height="wrap_content"
333 android:paddingBottom="5dp"
334 android:text=""
335 android:textAppearance="?android:attr/textAppearanceSmall"
336 />
337
338 <TextView
339 android:id="@+id/label_validity"
340 android:layout_width="wrap_content"
341 android:layout_height="wrap_content"
342 android:paddingBottom="5dp"
343 android:text="@string/ssl_validator_label_validity"
344 android:textAppearance="?android:attr/textAppearanceMedium"
345 />
346
347 <TextView
348 android:id="@+id/label_validity_from"
349 android:layout_width="wrap_content"
350 android:layout_height="wrap_content"
351 android:text="@string/ssl_validator_label_validity_from"
352 android:textAppearance="?android:attr/textAppearanceSmall"
353 />
354
355 <TextView
356 android:id="@+id/value_validity_from"
357 android:layout_width="wrap_content"
358 android:layout_height="wrap_content"
359 android:paddingBottom="5dp"
360 android:text=""
361 android:textAppearance="?android:attr/textAppearanceSmall"
362 />
363
364 <TextView
365 android:id="@+id/label_validity_to"
366 android:layout_width="wrap_content"
367 android:layout_height="wrap_content"
368 android:text="@string/ssl_validator_label_validity_to"
369 android:textAppearance="?android:attr/textAppearanceSmall"
370 />
371
372 <TextView
373 android:id="@+id/value_validity_to"
374 android:layout_width="wrap_content"
375 android:layout_height="wrap_content"
376 android:paddingBottom="5dp"
377 android:text=""
378 android:textAppearance="?android:attr/textAppearanceSmall"
379 />
380
381 <TextView
382 android:id="@+id/label_signature"
383 android:layout_width="wrap_content"
384 android:layout_height="wrap_content"
385 android:paddingBottom="5dp"
386 android:text="@string/ssl_validator_label_signature"
387 android:textAppearance="?android:attr/textAppearanceMedium"
388 />
389
390 <TextView
391 android:id="@+id/label_signature_algorithm"
392 android:layout_width="wrap_content"
393 android:layout_height="wrap_content"
394 android:text="@string/ssl_validator_label_signature_algorithm"
395 android:textAppearance="?android:attr/textAppearanceSmall"
396 />
397
398 <TextView
399 android:id="@+id/value_signature_algorithm"
400 android:layout_width="wrap_content"
401 android:layout_height="wrap_content"
402 android:paddingBottom="5dp"
403 android:text=""
404 android:textAppearance="?android:attr/textAppearanceSmall"
405 />
406
407 <TextView
408 android:id="@+id/label_certificate_fingerprint"
409 android:layout_width="wrap_content"
410 android:layout_height="wrap_content"
411 android:paddingBottom="5dp"
412 android:text="@string/ssl_validator_label_certificate_fingerprint"
413 android:textAppearance="?android:attr/textAppearanceSmall"
414 />
415
416 <TextView
417 android:id="@+id/value_certificate_fingerprint"
418 android:layout_width="wrap_content"
419 android:layout_height="wrap_content"
420 android:paddingBottom="5dp"
421 android:text=""
422 android:textAppearance="?android:attr/textAppearanceSmall"
423 />
424
425 </LinearLayout>
426
427 </ScrollView>
428
429 <TextView
430 android:id="@+id/question"
431 android:layout_width="wrap_content"
432 android:layout_height="wrap_content"
433 android:layout_weight="0"
434 android:paddingTop="@dimen/standard_padding"
435 android:text="@string/ssl_validator_question"
436 android:textAppearance="?android:attr/textAppearanceMedium"
437 >
438 </TextView>
439
440 <LinearLayout
441 android:layout_width="match_parent"
442 android:layout_height="wrap_content"
443 android:gravity="center" >
444
445 <android.support.v7.widget.AppCompatButton
446 android:id="@+id/cancel"
447 style="@style/Button.Borderless"
448 android:layout_width="0dp"
449 android:layout_height="wrap_content"
450 android:layout_weight="1"
451 android:text="@string/common_no" />
452
453 <android.support.v7.widget.AppCompatButton
454 android:id="@+id/details_btn"
455 style="@style/Button.Borderless"
456 android:layout_width="0dp"
457 android:layout_height="wrap_content"
458 android:layout_weight="2"
459 android:text="@string/ssl_validator_btn_details_see" />
460
461 <android.support.v7.widget.AppCompatButton
462 android:id="@+id/ok"
463 style="@style/Button.Borderless"
464 android:layout_width="0dp"
465 android:layout_height="wrap_content"
466 android:layout_weight="1"
467 android:text="@string/common_yes" />
468
469 </LinearLayout>
470
471 </LinearLayout>