Merge pull request #453 from owncloud/improve_action_bar_pr_392_with_develop
[pub/Android/ownCloud.git] / res / layout / ssl_validator_layout.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ownCloud Android client application
4
5 Copyright (C) 2012-2013 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:orientation="vertical" >
25
26 <TextView
27 android:id="@+id/header"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:text="@string/ssl_validator_header"
31 android:padding="5dp"
32 android:textAppearance="?android:attr/textAppearanceMedium"
33 />
34
35 <TextView
36 android:id="@+id/reason_cert_not_trusted"
37 android:layout_width="wrap_content"
38 android:layout_height="wrap_content"
39 android:layout_gravity="left"
40 android:paddingLeft="20dp"
41 android:text="@string/ssl_validator_reason_cert_not_trusted"
42 android:textAppearance="?android:attr/textAppearanceSmall"
43 />
44
45 <TextView
46 android:id="@+id/reason_cert_expired"
47 android:layout_width="wrap_content"
48 android:layout_height="wrap_content"
49 android:layout_gravity="left"
50 android:paddingLeft="20dp"
51 android:text="@string/ssl_validator_reason_cert_expired"
52 android:textAppearance="?android:attr/textAppearanceSmall"
53 />
54
55 <TextView
56 android:id="@+id/reason_cert_not_yet_valid"
57 android:layout_width="wrap_content"
58 android:layout_height="wrap_content"
59 android:layout_gravity="left"
60 android:paddingLeft="20dp"
61 android:text="@string/ssl_validator_reason_cert_not_yet_valid"
62 android:textAppearance="?android:attr/textAppearanceSmall"
63 />
64
65 <TextView
66 android:id="@+id/reason_hostname_not_verified"
67 android:layout_width="wrap_content"
68 android:layout_height="wrap_content"
69 android:layout_gravity="left"
70 android:paddingLeft="20dp"
71 android:text="@string/ssl_validator_reason_hostname_not_verified"
72 android:textAppearance="?android:attr/textAppearanceSmall"
73 />
74
75 <ScrollView
76 android:id="@+id/details_scroll"
77 android:visibility="gone"
78 android:padding="20dp"
79 android:layout_width="wrap_content"
80 android:layout_height="180dp">
81
82 <LinearLayout
83 android:id="@+id/details_view"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:gravity="left"
87 android:orientation="vertical" >
88
89 <TextView
90 android:id="@+id/label_subject"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:paddingBottom="5dp"
94 android:text="@string/ssl_validator_label_subject"
95 android:textAppearance="?android:attr/textAppearanceMedium"
96 />
97
98 <TextView
99 android:id="@+id/label_subject_CN"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:text="@string/ssl_validator_label_CN"
103 android:textAppearance="?android:attr/textAppearanceSmall"
104 />
105
106 <TextView
107 android:id="@+id/value_subject_CN"
108 android:layout_width="wrap_content"
109 android:layout_height="wrap_content"
110 android:paddingBottom="5dp"
111 android:text=""
112 android:textAppearance="?android:attr/textAppearanceSmall"
113 />
114
115 <TextView
116 android:id="@+id/label_subject_O"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:text="@string/ssl_validator_label_O"
120 android:textAppearance="?android:attr/textAppearanceSmall"
121 />
122
123 <TextView
124 android:id="@+id/value_subject_O"
125 android:layout_width="wrap_content"
126 android:layout_height="wrap_content"
127 android:paddingBottom="5dp"
128 android:text=""
129 android:textAppearance="?android:attr/textAppearanceSmall"
130 />
131
132 <TextView
133 android:id="@+id/label_subject_OU"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:text="@string/ssl_validator_label_OU"
137 android:textAppearance="?android:attr/textAppearanceSmall"
138 />
139
140 <TextView
141 android:id="@+id/value_subject_OU"
142 android:layout_width="wrap_content"
143 android:layout_height="wrap_content"
144 android:paddingBottom="5dp"
145 android:text=""
146 android:textAppearance="?android:attr/textAppearanceSmall"
147 />
148
149 <TextView
150 android:id="@+id/label_subject_ST"
151 android:layout_width="wrap_content"
152 android:layout_height="wrap_content"
153 android:text="@string/ssl_validator_label_ST"
154 android:textAppearance="?android:attr/textAppearanceSmall"
155 />
156
157 <TextView
158 android:id="@+id/value_subject_ST"
159 android:layout_width="wrap_content"
160 android:layout_height="wrap_content"
161 android:paddingBottom="5dp"
162 android:text=""
163 android:textAppearance="?android:attr/textAppearanceSmall"
164 />
165
166 <TextView
167 android:id="@+id/label_subject_C"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:text="@string/ssl_validator_label_C"
171 android:textAppearance="?android:attr/textAppearanceSmall"
172 />
173
174 <TextView
175 android:id="@+id/value_subject_C"
176 android:layout_width="wrap_content"
177 android:layout_height="wrap_content"
178 android:paddingBottom="5dp"
179 android:text=""
180 android:textAppearance="?android:attr/textAppearanceSmall"
181 />
182
183 <TextView
184 android:id="@+id/label_subject_L"
185 android:layout_width="wrap_content"
186 android:layout_height="wrap_content"
187 android:text="@string/ssl_validator_label_L"
188 android:textAppearance="?android:attr/textAppearanceSmall"
189 />
190
191 <TextView
192 android:id="@+id/value_subject_L"
193 android:layout_width="wrap_content"
194 android:layout_height="wrap_content"
195 android:paddingBottom="5dp"
196 android:text=""
197 android:textAppearance="?android:attr/textAppearanceSmall"
198 />
199
200
201 <TextView
202 android:id="@+id/label_issuer"
203 android:layout_width="wrap_content"
204 android:layout_height="wrap_content"
205 android:paddingBottom="5dp"
206 android:text="@string/ssl_validator_label_issuer"
207 android:textAppearance="?android:attr/textAppearanceMedium"
208 />
209
210 <TextView
211 android:id="@+id/label_issuer_CN"
212 android:layout_width="wrap_content"
213 android:layout_height="wrap_content"
214 android:text="@string/ssl_validator_label_CN"
215 android:textAppearance="?android:attr/textAppearanceSmall"
216 />
217
218 <TextView
219 android:id="@+id/value_issuer_CN"
220 android:layout_width="wrap_content"
221 android:layout_height="wrap_content"
222 android:paddingBottom="5dp"
223 android:text=""
224 android:textAppearance="?android:attr/textAppearanceSmall"
225 />
226
227 <TextView
228 android:id="@+id/label_issuer_O"
229 android:layout_width="wrap_content"
230 android:layout_height="wrap_content"
231 android:text="@string/ssl_validator_label_O"
232 android:textAppearance="?android:attr/textAppearanceSmall"
233 />
234
235 <TextView
236 android:id="@+id/value_issuer_O"
237 android:layout_width="wrap_content"
238 android:layout_height="wrap_content"
239 android:paddingBottom="5dp"
240 android:text=""
241 android:textAppearance="?android:attr/textAppearanceSmall"
242 />
243
244 <TextView
245 android:id="@+id/label_issuer_OU"
246 android:layout_width="wrap_content"
247 android:layout_height="wrap_content"
248 android:text="@string/ssl_validator_label_OU"
249 android:textAppearance="?android:attr/textAppearanceSmall"
250 />
251
252 <TextView
253 android:id="@+id/value_issuer_OU"
254 android:layout_width="wrap_content"
255 android:layout_height="wrap_content"
256 android:paddingBottom="5dp"
257 android:text=""
258 android:textAppearance="?android:attr/textAppearanceSmall"
259 />
260
261 <TextView
262 android:id="@+id/label_issuer_ST"
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:text="@string/ssl_validator_label_ST"
266 android:textAppearance="?android:attr/textAppearanceSmall"
267 />
268
269 <TextView
270 android:id="@+id/value_issuer_ST"
271 android:layout_width="wrap_content"
272 android:layout_height="wrap_content"
273 android:paddingBottom="5dp"
274 android:text=""
275 android:textAppearance="?android:attr/textAppearanceSmall"
276 />
277
278 <TextView
279 android:id="@+id/label_issuer_C"
280 android:layout_width="wrap_content"
281 android:layout_height="wrap_content"
282 android:text="@string/ssl_validator_label_C"
283 android:textAppearance="?android:attr/textAppearanceSmall"
284 />
285
286 <TextView
287 android:id="@+id/value_issuer_C"
288 android:layout_width="wrap_content"
289 android:layout_height="wrap_content"
290 android:paddingBottom="5dp"
291 android:text=""
292 android:textAppearance="?android:attr/textAppearanceSmall"
293 />
294
295 <TextView
296 android:id="@+id/label_issuer_L"
297 android:layout_width="wrap_content"
298 android:layout_height="wrap_content"
299 android:text="@string/ssl_validator_label_L"
300 android:textAppearance="?android:attr/textAppearanceSmall"
301 />
302
303 <TextView
304 android:id="@+id/value_issuer_L"
305 android:layout_width="wrap_content"
306 android:layout_height="wrap_content"
307 android:paddingBottom="5dp"
308 android:text=""
309 android:textAppearance="?android:attr/textAppearanceSmall"
310 />
311
312 <TextView
313 android:id="@+id/label_validity"
314 android:layout_width="wrap_content"
315 android:layout_height="wrap_content"
316 android:paddingBottom="5dp"
317 android:text="@string/ssl_validator_label_validity"
318 android:textAppearance="?android:attr/textAppearanceMedium"
319 />
320
321 <TextView
322 android:id="@+id/label_validity_from"
323 android:layout_width="wrap_content"
324 android:layout_height="wrap_content"
325 android:text="@string/ssl_validator_label_validity_from"
326 android:textAppearance="?android:attr/textAppearanceSmall"
327 />
328
329 <TextView
330 android:id="@+id/value_validity_from"
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_to"
340 android:layout_width="wrap_content"
341 android:layout_height="wrap_content"
342 android:text="@string/ssl_validator_label_validity_to"
343 android:textAppearance="?android:attr/textAppearanceSmall"
344 />
345
346 <TextView
347 android:id="@+id/value_validity_to"
348 android:layout_width="wrap_content"
349 android:layout_height="wrap_content"
350 android:paddingBottom="5dp"
351 android:text=""
352 android:textAppearance="?android:attr/textAppearanceSmall"
353 />
354
355
356 <TextView
357 android:id="@+id/label_signature"
358 android:layout_width="wrap_content"
359 android:layout_height="wrap_content"
360 android:paddingBottom="5dp"
361 android:text="@string/ssl_validator_label_signature"
362 android:textAppearance="?android:attr/textAppearanceMedium"
363 />
364
365 <TextView
366 android:id="@+id/label_signature_algorithm"
367 android:layout_width="wrap_content"
368 android:layout_height="wrap_content"
369 android:text="@string/ssl_validator_label_signature_algorithm"
370 android:textAppearance="?android:attr/textAppearanceSmall"
371 />
372
373 <TextView
374 android:id="@+id/value_signature_algorithm"
375 android:layout_width="wrap_content"
376 android:layout_height="wrap_content"
377 android:paddingBottom="5dp"
378 android:text=""
379 android:textAppearance="?android:attr/textAppearanceSmall"
380 />
381
382
383 <TextView
384 android:id="@+id/value_signature"
385 android:layout_width="wrap_content"
386 android:layout_height="wrap_content"
387 android:paddingBottom="5dp"
388 android:text=""
389 android:textAppearance="?android:attr/textAppearanceSmall"
390 />
391
392 </LinearLayout>
393
394 </ScrollView>
395
396 <TextView
397 android:id="@+id/question"
398 android:layout_width="wrap_content"
399 android:layout_height="wrap_content"
400 android:padding="5dp"
401 android:text="@string/ssl_validator_question"
402 android:textAppearance="?android:attr/textAppearanceMedium"
403 >
404 </TextView>
405
406 <LinearLayout
407 android:layout_width="match_parent"
408 android:layout_height="wrap_content"
409 android:gravity="center" >
410
411 <Button
412 android:id="@+id/cancel"
413 android:layout_width="0dp"
414 android:layout_height="wrap_content"
415 android:layout_weight="1"
416 android:text="@string/common_cancel" />
417
418 <Button
419 android:id="@+id/details_btn"
420 android:layout_width="0dp"
421 android:layout_height="wrap_content"
422 android:layout_weight="1"
423 android:text="@string/ssl_validator_btn_details_see" />
424
425 <Button
426 android:id="@+id/ok"
427 android:layout_width="0dp"
428 android:layout_height="wrap_content"
429 android:layout_weight="1"
430 android:text="@string/common_ok" />
431
432 </LinearLayout>
433
434 </LinearLayout>