ssl_certificate.xml revision 4a06281052e42c09062050abd7fa3de3249c088c
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2008 The Android Open Source Project
3
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7
8          http://www.apache.org/licenses/LICENSE-2.0
9
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS" BASIS,
12     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License.
15-->
16
17<ScrollView
18    xmlns:android="http://schemas.android.com/apk/res/android"
19    android:layout_width="match_parent"
20    android:layout_height="wrap_content" >
21
22    <LinearLayout
23        android:id="@+id/body"
24        android:layout_width="match_parent"
25        android:layout_height="wrap_content"
26        android:gravity="left"
27        android:orientation="vertical" >
28
29        <!-- Placeholder for the success message or one or more warnings -->
30        <LinearLayout
31            android:id="@+id/placeholder"
32            android:layout_height="wrap_content"
33            android:layout_width="match_parent"
34            android:layout_marginTop="12dip"
35            android:orientation="vertical" />
36
37        <!-- Dialog-title line separator -->
38        <ImageView
39            android:id="@+id/title_separator"
40            android:src="@android:drawable/divider_horizontal_dark"
41            android:layout_width="match_parent"
42            android:layout_height="wrap_content"
43            android:scaleType="fitXY"
44            android:layout_weight="1"
45            android:gravity="fill_horizontal"
46            android:layout_marginLeft="20dip"
47            android:layout_marginRight="20dip"/>
48
49        <TableLayout
50            android:layout_width="match_parent"
51            android:layout_height="wrap_content"
52            android:shrinkColumns="1"
53            android:orientation="vertical">
54
55            <!-- Issued to: -->
56            <TextView
57                android:id="@+id/issued_to_header"
58                android:text="@string/issued_to"
59                android:textStyle="bold"
60                android:layout_height="wrap_content"
61                android:layout_width="match_parent"
62                android:layout_marginTop="12dip"
63                android:layout_marginLeft="20dip"
64                android:layout_marginRight="20dip"
65                android:layout_marginBottom="7dip" />
66
67            <!-- Common name: -->
68            <TableRow>
69                <TextView
70                    android:id="@+id/to_common_header"
71                    android:text="@string/common_name"
72                    android:layout_marginLeft="20dip" />
73
74                <TextView
75                    android:id="@+id/to_common"
76                    android:layout_marginLeft="10dip"
77                    android:layout_marginRight="20dip"
78                    android:layout_marginBottom="7dip" />
79            </TableRow>
80
81            <!-- Organization: -->
82            <TableRow>
83                <TextView
84                    android:id="@+id/to_org_header"
85                    android:text="@string/org_name"
86                    android:layout_marginLeft="20dip" />
87
88                <TextView
89                    android:id="@+id/to_org"
90                    android:layout_marginLeft="10dip"
91                    android:layout_marginRight="20dip"
92                    android:layout_marginBottom="7dip" />
93            </TableRow>
94
95            <!-- Organizational unit: -->
96            <TableRow>
97                <TextView
98                    android:id="@+id/to_org_unit_header"
99                    android:text="@string/org_unit"
100                    android:layout_marginLeft="20dip" />
101
102                <TextView
103                    android:id="@+id/to_org_unit"
104                    android:layout_marginLeft="10dip"
105                    android:layout_marginRight="20dip"
106                    android:layout_marginBottom="7dip" />
107            </TableRow>
108
109            <!-- Serial number: -->
110            <TableRow>
111                <TextView
112                    android:id="@+id/serial_number_header"
113                    android:text="@string/serial_number"
114                    android:layout_marginLeft="20dip" />
115
116                <TextView
117                    android:id="@+id/serial_number"
118                    android:layout_marginLeft="10dip"
119                    android:layout_marginRight="20dip"
120                    android:layout_marginBottom="7dip" />
121            </TableRow>
122
123            <!-- Issued by: -->
124            <TextView
125                android:id="@+id/issued_to_header"
126                android:text="@string/issued_by"
127                android:textStyle="bold"
128                android:layout_height="wrap_content"
129                android:layout_width="match_parent"
130                android:layout_marginTop="12dip"
131                android:layout_marginLeft="20dip"
132                android:layout_marginRight="20dip"
133                android:layout_marginBottom="7dip" />
134
135            <!-- Common name: -->
136            <TableRow>
137                <TextView
138                    android:id="@+id/by_common_header"
139                    android:text="@string/common_name"
140                    android:layout_marginLeft="20dip" />
141
142                <TextView
143                    android:id="@+id/by_common"
144                    android:layout_marginLeft="10dip"
145                    android:layout_marginRight="20dip"
146                    android:layout_marginBottom="7dip" />
147            </TableRow>
148
149            <!-- Organization: -->
150            <TableRow>
151                <TextView
152                    android:id="@+id/by_org_header"
153                    android:text="@string/org_name"
154                    android:layout_marginLeft="20dip" />
155
156                <TextView
157                    android:id="@+id/by_org"
158                    android:layout_marginLeft="10dip"
159                    android:layout_marginRight="20dip"
160                    android:layout_marginBottom="7dip" />
161            </TableRow>
162
163            <!-- Organizational unit: -->
164            <TableRow>
165                <TextView
166                    android:id="@+id/by_org_unit_header"
167                    android:text="@string/org_unit"
168                    android:layout_marginLeft="20dip" />
169
170                <TextView
171                    android:id="@+id/by_org_unit"
172                    android:layout_marginLeft="10dip"
173                    android:layout_marginRight="20dip"
174                    android:layout_marginBottom="7dip" />
175            </TableRow>
176
177            <!-- Validity Dates: -->
178            <TextView
179                android:id="@+id/validity_header"
180                android:layout_height="wrap_content"
181                android:layout_width="match_parent"
182                android:text="@string/validity_period"
183                android:textStyle="bold"
184                android:layout_marginTop="12dip"
185                android:layout_marginLeft="20dip"
186                android:layout_marginRight="20dip"
187                android:layout_marginBottom="7dip" />
188
189            <!-- Issued On: -->
190            <TableRow>
191                <TextView
192                    android:id="@+id/issued_on_header"
193                    android:layout_width="match_parent"
194                    android:layout_height="wrap_content"
195                    android:text="@string/issued_on"
196                    android:layout_marginLeft="20dip" />
197
198                <TextView
199                    android:id="@+id/issued_on"
200                    android:layout_height="wrap_content"
201                    android:layout_width="match_parent"
202                    android:layout_marginLeft="10dip"
203                    android:layout_marginRight="20dip"
204                    android:layout_marginBottom="7dip" />
205
206            </TableRow>
207
208            <!-- Expires On: -->
209            <TableRow>
210                <TextView
211                    android:id="@+id/expires_on_header"
212                    android:layout_width="match_parent"
213                    android:layout_height="wrap_content"
214                    android:text="@string/expires_on"
215                    android:layout_marginLeft="20dip" />
216
217                <TextView
218                    android:id="@+id/expires_on"
219                    android:layout_height="wrap_content"
220                    android:layout_width="match_parent"
221                    android:layout_marginLeft="10dip"
222                    android:layout_marginRight="20dip"
223                    android:layout_marginBottom="7dip" />
224            </TableRow>
225
226            <!-- Fingerprints: -->
227            <TextView
228                android:id="@+id/fingerprints"
229                android:layout_height="wrap_content"
230                android:layout_width="match_parent"
231                android:text="@string/fingerprints"
232                android:textStyle="bold"
233                android:layout_marginTop="12dip"
234                android:layout_marginLeft="20dip"
235                android:layout_marginRight="20dip"
236                android:layout_marginBottom="7dip" />
237
238            <!-- SHA-256 fingerprint: -->
239            <TableRow>
240                <TextView
241                    android:id="@+id/sha256_fingerprint_header"
242                    android:layout_width="match_parent"
243                    android:layout_height="wrap_content"
244                    android:text="@string/sha256_fingerprint"
245                    android:layout_marginLeft="20dip" />
246
247                <TextView
248                    android:id="@+id/sha256_fingerprint"
249                    android:layout_height="wrap_content"
250                    android:layout_width="match_parent"
251                    android:layout_marginLeft="10dip"
252                    android:layout_marginRight="20dip"
253                    android:layout_marginBottom="7dip" />
254
255            </TableRow>
256
257            <!-- SHA-1 fingerprint: -->
258            <TableRow>
259                <TextView
260                    android:id="@+id/sha1_fingerprint_header"
261                    android:layout_width="match_parent"
262                    android:layout_height="wrap_content"
263                    android:text="@string/sha1_fingerprint"
264                    android:layout_marginLeft="20dip" />
265
266                <TextView
267                    android:id="@+id/sha1_fingerprint"
268                    android:layout_height="wrap_content"
269                    android:layout_width="match_parent"
270                    android:layout_marginLeft="10dip"
271                    android:layout_marginRight="20dip"
272                    android:layout_marginBottom="7dip" />
273
274            </TableRow>
275
276        </TableLayout>
277
278    </LinearLayout>
279
280</ScrollView>
281