Fixed crash when the device is turned while the warning dialog about server certifica...
[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 Bartek Przybylski
6 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
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
76 <TextView
77 android:id="@+id/subject"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:padding="5dp"
81 android:text="@string/text_placeholder"
82 android:textAppearance="?android:attr/textAppearanceSmall"
83 />
84
85 <TextView
86 android:id="@+id/question"
87 android:layout_width="wrap_content"
88 android:layout_height="wrap_content"
89 android:padding="5dp"
90 android:text="@string/ssl_validator_question"
91 android:textAppearance="?android:attr/textAppearanceMedium"
92 >
93 </TextView>
94
95 <LinearLayout
96 android:layout_width="match_parent"
97 android:layout_height="wrap_content"
98 android:gravity="center_horizontal" >
99
100 <Button
101 android:id="@+id/cancel"
102 android:layout_width="0dp"
103 android:layout_height="wrap_content"
104 android:layout_weight="1"
105 android:text="@string/common_cancel" />
106
107 <Button
108 android:id="@+id/ok"
109 android:layout_width="0dp"
110 android:layout_height="wrap_content"
111 android:layout_weight="1"
112 android:text="@string/common_ok" />
113
114 </LinearLayout>
115
116 </LinearLayout>