Fix buttons out of screen in SSL warning dialogs for small screens in landspace
[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) 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/untrusted_header"
28 android:layout_width="wrap_content"
29 android:layout_height="wrap_content"
30 android:layout_weight="0"
31 android:text="@string/ssl_validator_header"
32 android:padding="5dp"
33 android:textAppearance="?android:attr/textAppearanceMedium"
34 />
35
36 <TextView
37 android:id="@+id/untrusted_reason_cert_not_trusted"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
40 android:layout_weight="0"
41 android:layout_gravity="left"
42 android:paddingLeft="20dp"
43 android:text="@string/ssl_validator_reason_cert_not_trusted"
44 android:textAppearance="?android:attr/textAppearanceSmall"
45 />
46
47 <ScrollView
48 android:id="@+id/untrusted_details_scroll"
49 android:visibility="gone"
50 android:padding="20dp"
51 android:layout_width="match_parent"
52 android:layout_height="0dp"
53 android:layout_weight="1"
54 >
55
56 <LinearLayout
57 android:id="@+id/untrusted_details_view"
58 android:layout_width="wrap_content"
59 android:layout_height="wrap_content"
60 android:gravity="left"
61 android:orientation="vertical" >
62
63 <TextView
64 android:id="@+id/untrusted_null_cert"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:layout_gravity="left"
68 android:paddingLeft="20dp"
69 android:text="@string/ssl_validator_null_cert"
70 android:textAppearance="?android:attr/textAppearanceSmall" />
71
72 <TextView
73 android:id="@+id/untrusted_label_subject"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:paddingBottom="5dp"
77 android:text="@string/ssl_validator_label_subject"
78 android:textAppearance="?android:attr/textAppearanceMedium"
79 />
80
81 <TextView
82 android:id="@+id/untrusted_label_subject_CN"
83 android:layout_width="wrap_content"
84 android:layout_height="wrap_content"
85 android:text="@string/ssl_validator_label_CN"
86 android:textAppearance="?android:attr/textAppearanceSmall"
87 />
88
89 <TextView
90 android:id="@+id/untrusted_value_subject_CN"
91 android:layout_width="wrap_content"
92 android:layout_height="wrap_content"
93 android:paddingBottom="5dp"
94 android:text=""
95 android:textAppearance="?android:attr/textAppearanceSmall"
96 />
97
98 <TextView
99 android:id="@+id/untrusted_label_subject_O"
100 android:layout_width="wrap_content"
101 android:layout_height="wrap_content"
102 android:text="@string/ssl_validator_label_O"
103 android:textAppearance="?android:attr/textAppearanceSmall"
104 />
105
106 <TextView
107 android:id="@+id/untrusted_value_subject_O"
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/untrusted_label_subject_OU"
117 android:layout_width="wrap_content"
118 android:layout_height="wrap_content"
119 android:text="@string/ssl_validator_label_OU"
120 android:textAppearance="?android:attr/textAppearanceSmall"
121 />
122
123 <TextView
124 android:id="@+id/untrusted_value_subject_OU"
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/untrusted_label_subject_ST"
134 android:layout_width="wrap_content"
135 android:layout_height="wrap_content"
136 android:text="@string/ssl_validator_label_ST"
137 android:textAppearance="?android:attr/textAppearanceSmall"
138 />
139
140 <TextView
141 android:id="@+id/untrusted_value_subject_ST"
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/untrusted_label_subject_C"
151 android:layout_width="wrap_content"
152 android:layout_height="wrap_content"
153 android:text="@string/ssl_validator_label_C"
154 android:textAppearance="?android:attr/textAppearanceSmall"
155 />
156
157 <TextView
158 android:id="@+id/untrusted_value_subject_C"
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/untrusted_label_subject_L"
168 android:layout_width="wrap_content"
169 android:layout_height="wrap_content"
170 android:text="@string/ssl_validator_label_L"
171 android:textAppearance="?android:attr/textAppearanceSmall"
172 />
173
174 <TextView
175 android:id="@+id/untrusted_value_subject_L"
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
184 <TextView
185 android:id="@+id/untrusted_label_issuer"
186 android:layout_width="wrap_content"
187 android:layout_height="wrap_content"
188 android:paddingBottom="5dp"
189 android:text="@string/ssl_validator_label_issuer"
190 android:textAppearance="?android:attr/textAppearanceMedium"
191 />
192
193 <TextView
194 android:id="@+id/untrusted_label_issuer_CN"
195 android:layout_width="wrap_content"
196 android:layout_height="wrap_content"
197 android:text="@string/ssl_validator_label_CN"
198 android:textAppearance="?android:attr/textAppearanceSmall"
199 />
200
201 <TextView
202 android:id="@+id/untrusted_value_issuer_CN"
203 android:layout_width="wrap_content"
204 android:layout_height="wrap_content"
205 android:paddingBottom="5dp"
206 android:text=""
207 android:textAppearance="?android:attr/textAppearanceSmall"
208 />
209
210 <TextView
211 android:id="@+id/untrusted_label_issuer_O"
212 android:layout_width="wrap_content"
213 android:layout_height="wrap_content"
214 android:text="@string/ssl_validator_label_O"
215 android:textAppearance="?android:attr/textAppearanceSmall"
216 />
217
218 <TextView
219 android:id="@+id/untrusted_value_issuer_O"
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/untrusted_label_issuer_OU"
229 android:layout_width="wrap_content"
230 android:layout_height="wrap_content"
231 android:text="@string/ssl_validator_label_OU"
232 android:textAppearance="?android:attr/textAppearanceSmall"
233 />
234
235 <TextView
236 android:id="@+id/untrusted_value_issuer_OU"
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/untrusted_label_issuer_ST"
246 android:layout_width="wrap_content"
247 android:layout_height="wrap_content"
248 android:text="@string/ssl_validator_label_ST"
249 android:textAppearance="?android:attr/textAppearanceSmall"
250 />
251
252 <TextView
253 android:id="@+id/untrusted_value_issuer_ST"
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/untrusted_label_issuer_C"
263 android:layout_width="wrap_content"
264 android:layout_height="wrap_content"
265 android:text="@string/ssl_validator_label_C"
266 android:textAppearance="?android:attr/textAppearanceSmall"
267 />
268
269 <TextView
270 android:id="@+id/untrusted_value_issuer_C"
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/untrusted_label_issuer_L"
280 android:layout_width="wrap_content"
281 android:layout_height="wrap_content"
282 android:text="@string/ssl_validator_label_L"
283 android:textAppearance="?android:attr/textAppearanceSmall"
284 />
285
286 <TextView
287 android:id="@+id/untrusted_value_issuer_L"
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/untrusted_label_validity"
297 android:layout_width="wrap_content"
298 android:layout_height="wrap_content"
299 android:paddingBottom="5dp"
300 android:text="@string/ssl_validator_label_validity"
301 android:textAppearance="?android:attr/textAppearanceMedium"
302 />
303
304 <TextView
305 android:id="@+id/untrusted_label_validity_from"
306 android:layout_width="wrap_content"
307 android:layout_height="wrap_content"
308 android:text="@string/ssl_validator_label_validity_from"
309 android:textAppearance="?android:attr/textAppearanceSmall"
310 />
311
312 <TextView
313 android:id="@+id/untrusted_value_validity_from"
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/untrusted_label_validity_to"
323 android:layout_width="wrap_content"
324 android:layout_height="wrap_content"
325 android:text="@string/ssl_validator_label_validity_to"
326 android:textAppearance="?android:attr/textAppearanceSmall"
327 />
328
329 <TextView
330 android:id="@+id/untrusted_value_validity_to"
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
339 <TextView
340 android:id="@+id/untrusted_label_signature"
341 android:layout_width="wrap_content"
342 android:layout_height="wrap_content"
343 android:paddingBottom="5dp"
344 android:text="@string/ssl_validator_label_signature"
345 android:textAppearance="?android:attr/textAppearanceMedium"
346 />
347
348 <TextView
349 android:id="@+id/untrusted_label_signature_algorithm"
350 android:layout_width="wrap_content"
351 android:layout_height="wrap_content"
352 android:text="@string/ssl_validator_label_signature_algorithm"
353 android:textAppearance="?android:attr/textAppearanceSmall"
354 />
355
356 <TextView
357 android:id="@+id/untrusted_value_signature_algorithm"
358 android:layout_width="wrap_content"
359 android:layout_height="wrap_content"
360 android:paddingBottom="5dp"
361 android:text=""
362 android:textAppearance="?android:attr/textAppearanceSmall"
363 />
364
365
366 <TextView
367 android:id="@+id/untrusted_value_signature"
368 android:layout_width="wrap_content"
369 android:layout_height="wrap_content"
370 android:paddingBottom="5dp"
371 android:text=""
372 android:textAppearance="?android:attr/textAppearanceSmall"
373 />
374
375 </LinearLayout>
376
377 </ScrollView>
378
379 <TextView
380 android:id="@+id/untrusted_question"
381 android:layout_width="wrap_content"
382 android:layout_height="wrap_content"
383 android:layout_weight="0"
384 android:padding="5dp"
385 android:text="@string/ssl_validator_question"
386 android:textAppearance="?android:attr/textAppearanceMedium"
387 >
388 </TextView>
389
390 <LinearLayout
391 android:layout_width="match_parent"
392 android:layout_height="wrap_content"
393 android:layout_weight="0"
394 android:gravity="center" >
395
396 <Button
397 android:id="@+id/untrusted_cancel"
398 android:layout_width="0dp"
399 android:layout_height="wrap_content"
400 android:layout_weight="1"
401 android:text="@string/common_cancel" />
402
403 <Button
404 android:id="@+id/untrusted_details_btn"
405 android:layout_width="0dp"
406 android:layout_height="wrap_content"
407 android:layout_weight="1"
408 android:text="@string/ssl_validator_btn_details_see" />
409
410 <Button
411 android:id="@+id/untrusted_ok"
412 android:layout_width="0dp"
413 android:layout_height="wrap_content"
414 android:layout_weight="1"
415 android:text="@string/common_ok" />
416
417 </LinearLayout>
418
419 </LinearLayout>