]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/frontends/android/app/src/main/res/layout/profile_detail_view.xml
android: Make DNS servers configurable in the GUI
[thirdparty/strongswan.git] / src / frontends / android / app / src / main / res / layout / profile_detail_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2012-2019 Tobias Brunner
4 Copyright (C) 2012 Giuliano Grassi
5 Copyright (C) 2012 Ralf Sager
6 HSR Hochschule fuer Technik Rapperswil
7
8 This program is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 2 of the License, or (at your
11 option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 -->
18 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 android:layout_width="match_parent"
21 android:layout_height="match_parent" >
22
23 <LinearLayout
24 android:layout_width="match_parent"
25 android:layout_height="wrap_content"
26 android:orientation="vertical"
27 android:padding="10dp"
28 android:animateLayoutChanges="true" >
29
30 <org.strongswan.android.ui.widget.TextInputLayoutHelper
31 android:id="@+id/gateway_wrap"
32 android:layout_width="match_parent"
33 android:layout_height="wrap_content"
34 android:layout_marginTop="6dp"
35 android:hint="@string/profile_gateway_label"
36 app:helper_text="@string/profile_gateway_hint" >
37
38 <android.support.design.widget.TextInputEditText
39 android:id="@+id/gateway"
40 android:layout_width="match_parent"
41 android:layout_height="wrap_content"
42 android:singleLine="true"
43 android:inputType="textNoSuggestions" />
44
45 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
46
47 <TextView
48 android:layout_width="match_parent"
49 android:layout_height="wrap_content"
50 android:layout_marginLeft="4dp"
51 android:textSize="12sp"
52 android:text="@string/profile_vpn_type_label" />
53
54 <Spinner
55 android:id="@+id/vpn_type"
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:spinnerMode="dropdown"
59 android:entries="@array/vpn_types" />
60
61 <include
62 android:id="@+id/tnc_notice"
63 layout="@layout/two_line_button"
64 android:visibility="gone" />
65
66 <LinearLayout
67 android:id="@+id/username_password_group"
68 android:layout_width="match_parent"
69 android:layout_height="wrap_content"
70 android:orientation="vertical" >
71
72 <org.strongswan.android.ui.widget.TextInputLayoutHelper
73 android:id="@+id/username_wrap"
74 android:layout_width="match_parent"
75 android:layout_height="wrap_content"
76 android:hint="@string/profile_username_label" >
77
78 <android.support.design.widget.TextInputEditText
79 android:id="@+id/username"
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
82 android:singleLine="true"
83 android:inputType="textNoSuggestions" />
84
85 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
86
87 <org.strongswan.android.ui.widget.TextInputLayoutHelper
88 android:id="@+id/password_wrap"
89 android:layout_width="match_parent"
90 android:layout_height="wrap_content"
91 android:layout_marginTop="4dp"
92 android:hint="@string/profile_password_label"
93 app:helper_text="@string/profile_password_hint" >
94
95 <android.support.design.widget.TextInputEditText
96 android:id="@+id/password"
97 android:layout_width="match_parent"
98 android:layout_height="wrap_content"
99 android:singleLine="true"
100 android:inputType="textPassword|textNoSuggestions" />
101
102 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
103
104 </LinearLayout>
105
106 <LinearLayout
107 android:id="@+id/user_certificate_group"
108 android:layout_width="match_parent"
109 android:layout_height="wrap_content"
110 android:layout_marginBottom="4dp"
111 android:orientation="vertical" >
112
113 <TextView
114 android:layout_width="match_parent"
115 android:layout_height="wrap_content"
116 android:layout_marginTop="4dp"
117 android:layout_marginLeft="4dp"
118 android:textSize="12sp"
119 android:text="@string/profile_user_certificate_label" />
120
121 <include
122 android:id="@+id/select_user_certificate"
123 layout="@layout/two_line_button" />
124
125 <TextView
126 android:layout_width="match_parent"
127 android:layout_height="wrap_content"
128 android:layout_marginTop="4dp"
129 android:layout_marginLeft="4dp"
130 android:textSize="12sp"
131 android:text="@string/profile_user_select_id_label" />
132
133 <Spinner
134 android:id="@+id/select_user_id"
135 android:layout_width="match_parent"
136 android:layout_height="wrap_content"
137 android:spinnerMode="dropdown" />
138
139 </LinearLayout>
140
141 <TextView
142 android:layout_width="match_parent"
143 android:layout_height="wrap_content"
144 android:layout_marginLeft="4dp"
145 android:textSize="12sp"
146 android:text="@string/profile_ca_label" />
147
148 <CheckBox
149 android:id="@+id/ca_auto"
150 android:layout_width="match_parent"
151 android:layout_height="wrap_content"
152 android:layout_marginTop="4dp"
153 android:text="@string/profile_ca_auto_label" />
154
155 <include
156 android:id="@+id/select_certificate"
157 layout="@layout/two_line_button" />
158
159 <org.strongswan.android.ui.widget.TextInputLayoutHelper
160 android:id="@+id/name_wrap"
161 android:layout_width="match_parent"
162 android:layout_height="wrap_content"
163 android:layout_marginTop="8dp"
164 android:hint="@string/profile_name_label"
165 app:helper_text="@string/profile_name_hint" >
166
167 <MultiAutoCompleteTextView
168 android:id="@+id/name"
169 android:layout_width="match_parent"
170 android:layout_height="wrap_content"
171 android:singleLine="true"
172 android:inputType="textNoSuggestions"
173 android:completionThreshold="1" />
174
175 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
176
177 <CheckBox
178 android:id="@+id/show_advanced"
179 android:layout_width="match_parent"
180 android:layout_height="wrap_content"
181 android:text="@string/profile_show_advanced_label" />
182
183 <LinearLayout
184 android:id="@+id/advanced_settings"
185 android:layout_width="match_parent"
186 android:layout_height="wrap_content"
187 android:orientation="vertical" >
188
189 <TextView
190 android:layout_width="match_parent"
191 android:layout_height="wrap_content"
192 android:layout_marginTop="10dp"
193 android:layout_marginLeft="4dp"
194 android:textSize="20sp"
195 android:text="@string/profile_advanced_label" />
196
197 <org.strongswan.android.ui.widget.TextInputLayoutHelper
198 android:id="@+id/remote_id_wrap"
199 android:layout_width="match_parent"
200 android:layout_height="wrap_content"
201 android:layout_marginTop="10dp"
202 android:hint="@string/profile_remote_id_label"
203 app:helper_text="@string/profile_remote_id_hint" >
204
205 <MultiAutoCompleteTextView
206 android:id="@+id/remote_id"
207 android:layout_width="match_parent"
208 android:layout_height="wrap_content"
209 android:singleLine="true"
210 android:inputType="textNoSuggestions"
211 android:completionThreshold="1" />
212
213 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
214
215 <org.strongswan.android.ui.widget.TextInputLayoutHelper
216 android:id="@+id/dns_servers_wrap"
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
219 android:layout_marginTop="10dp"
220 android:hint="@string/profile_dns_servers_label"
221 app:helper_text="@string/profile_dns_servers_hint" >
222
223 <MultiAutoCompleteTextView
224 android:id="@+id/dns_servers"
225 android:layout_width="match_parent"
226 android:layout_height="wrap_content"
227 android:singleLine="true"
228 android:inputType="textNoSuggestions"
229 android:completionThreshold="1" />
230
231 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
232
233 <org.strongswan.android.ui.widget.TextInputLayoutHelper
234 android:id="@+id/mtu_wrap"
235 android:layout_width="match_parent"
236 android:layout_height="wrap_content"
237 android:hint="@string/profile_mtu_label"
238 app:helper_text="@string/profile_mtu_hint" >
239
240 <android.support.design.widget.TextInputEditText
241 android:id="@+id/mtu"
242 android:layout_width="match_parent"
243 android:layout_height="wrap_content"
244 android:singleLine="true"
245 android:inputType="number|textNoSuggestions" />
246
247 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
248
249 <org.strongswan.android.ui.widget.TextInputLayoutHelper
250 android:id="@+id/port_wrap"
251 android:layout_width="match_parent"
252 android:layout_height="wrap_content"
253 android:hint="@string/profile_port_label"
254 app:helper_text="@string/profile_port_hint" >
255
256 <android.support.design.widget.TextInputEditText
257 android:id="@+id/port"
258 android:layout_width="match_parent"
259 android:layout_height="wrap_content"
260 android:singleLine="true"
261 android:inputType="number|textNoSuggestions" />
262
263 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
264
265 <org.strongswan.android.ui.widget.TextInputLayoutHelper
266 android:id="@+id/nat_keepalive_wrap"
267 android:layout_width="match_parent"
268 android:layout_height="wrap_content"
269 android:hint="@string/profile_nat_keepalive_label"
270 app:helper_text="@string/profile_nat_keepalive_hint" >
271
272 <android.support.design.widget.TextInputEditText
273 android:id="@+id/nat_keepalive"
274 android:layout_width="match_parent"
275 android:layout_height="wrap_content"
276 android:singleLine="true"
277 android:inputType="number|textNoSuggestions" />
278
279 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
280
281 <Switch
282 android:id="@+id/cert_req"
283 android:layout_width="match_parent"
284 android:layout_height="wrap_content"
285 android:layout_marginLeft="4dp"
286 android:layout_marginStart="4dp"
287 android:text="@string/profile_cert_req_label" />
288
289 <TextView
290 android:layout_width="match_parent"
291 android:layout_height="wrap_content"
292 android:layout_marginBottom="10dp"
293 android:layout_marginLeft="4dp"
294 android:layout_marginStart="4dp"
295 android:textSize="12sp"
296 android:text="@string/profile_cert_req_hint" />
297
298 <Switch
299 android:id="@+id/use_ocsp"
300 android:layout_width="match_parent"
301 android:layout_height="wrap_content"
302 android:layout_marginLeft="4dp"
303 android:layout_marginStart="4dp"
304 android:text="@string/profile_use_ocsp_label" />
305
306 <TextView
307 android:layout_width="match_parent"
308 android:layout_height="wrap_content"
309 android:layout_marginBottom="10dp"
310 android:layout_marginLeft="4dp"
311 android:layout_marginStart="4dp"
312 android:textSize="12sp"
313 android:text="@string/profile_use_ocsp_hint" />
314
315 <Switch
316 android:id="@+id/use_crl"
317 android:layout_width="match_parent"
318 android:layout_height="wrap_content"
319 android:layout_marginLeft="4dp"
320 android:layout_marginStart="4dp"
321 android:text="@string/profile_use_crl_label" />
322
323 <TextView
324 android:layout_width="match_parent"
325 android:layout_height="wrap_content"
326 android:layout_marginBottom="10dp"
327 android:layout_marginLeft="4dp"
328 android:layout_marginStart="4dp"
329 android:textSize="12sp"
330 android:text="@string/profile_use_crl_hint" />
331
332 <Switch
333 android:id="@+id/strict_revocation"
334 android:layout_width="match_parent"
335 android:layout_height="wrap_content"
336 android:layout_marginLeft="4dp"
337 android:layout_marginStart="4dp"
338 android:text="@string/profile_strict_revocation_label" />
339
340 <TextView
341 android:layout_width="match_parent"
342 android:layout_height="wrap_content"
343 android:layout_marginBottom="10dp"
344 android:layout_marginLeft="4dp"
345 android:layout_marginStart="4dp"
346 android:textSize="12sp"
347 android:text="@string/profile_strict_revocation_hint" />
348
349 <Switch
350 android:id="@+id/rsa_pss"
351 android:layout_width="match_parent"
352 android:layout_height="wrap_content"
353 android:layout_marginLeft="4dp"
354 android:layout_marginStart="4dp"
355 android:text="@string/profile_rsa_pss_label" />
356
357 <TextView
358 android:layout_width="match_parent"
359 android:layout_height="wrap_content"
360 android:layout_marginBottom="10dp"
361 android:layout_marginLeft="4dp"
362 android:layout_marginStart="4dp"
363 android:textSize="12sp"
364 android:text="@string/profile_rsa_pss_hint" />
365
366 <TextView
367 android:layout_width="match_parent"
368 android:layout_height="wrap_content"
369 android:layout_marginTop="10dp"
370 android:layout_marginBottom="10dp"
371 android:layout_marginLeft="4dp"
372 android:layout_marginStart="4dp"
373 android:textSize="20sp"
374 android:text="@string/profile_split_tunneling_label" />
375
376 <TextView
377 android:layout_width="match_parent"
378 android:layout_height="wrap_content"
379 android:layout_marginTop="10dp"
380 android:layout_marginBottom="10dp"
381 android:layout_marginLeft="4dp"
382 android:textSize="12sp"
383 android:text="@string/profile_split_tunneling_intro" />
384
385 <org.strongswan.android.ui.widget.TextInputLayoutHelper
386 android:id="@+id/included_subnets_wrap"
387 android:layout_width="match_parent"
388 android:layout_height="wrap_content"
389 android:hint="@string/profile_included_subnets_label"
390 app:helper_text="@string/profile_included_subnets_hint" >
391
392 <android.support.design.widget.TextInputEditText
393 android:id="@+id/included_subnets"
394 android:layout_width="match_parent"
395 android:layout_height="wrap_content"
396 android:singleLine="true"
397 android:inputType="textNoSuggestions" />
398
399 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
400
401 <org.strongswan.android.ui.widget.TextInputLayoutHelper
402 android:id="@+id/excluded_subnets_wrap"
403 android:layout_width="match_parent"
404 android:layout_height="wrap_content"
405 android:hint="@string/profile_excluded_subnets_label"
406 app:helper_text="@string/profile_excluded_subnets_hint" >
407
408 <android.support.design.widget.TextInputEditText
409 android:id="@+id/excluded_subnets"
410 android:layout_width="match_parent"
411 android:layout_height="wrap_content"
412 android:singleLine="true"
413 android:inputType="textNoSuggestions" />
414
415 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
416
417 <CheckBox
418 android:id="@+id/split_tunneling_v4"
419 android:layout_width="match_parent"
420 android:layout_height="wrap_content"
421 android:text="@string/profile_split_tunnelingv4_title" />
422
423 <CheckBox
424 android:id="@+id/split_tunneling_v6"
425 android:layout_width="match_parent"
426 android:layout_height="wrap_content"
427 android:text="@string/profile_split_tunnelingv6_title" />
428
429 <TextView
430 android:id="@+id/apps"
431 android:layout_width="match_parent"
432 android:layout_height="wrap_content"
433 android:layout_marginTop="20dp"
434 android:layout_marginBottom="10dp"
435 android:layout_marginLeft="4dp"
436 android:layout_marginStart="4dp"
437 android:textSize="20sp"
438 android:text="@string/profile_select_apps_label" />
439
440 <Spinner
441 android:id="@+id/apps_handling"
442 android:layout_width="match_parent"
443 android:layout_height="wrap_content"
444 android:spinnerMode="dropdown"
445 android:entries="@array/apps_handling" />
446
447 <include
448 android:id="@+id/select_applications"
449 layout="@layout/two_line_button" />
450
451 <TextView
452 android:layout_width="match_parent"
453 android:layout_height="wrap_content"
454 android:layout_marginTop="10dp"
455 android:layout_marginBottom="10dp"
456 android:layout_marginLeft="4dp"
457 android:layout_marginStart="4dp"
458 android:textSize="20sp"
459 android:text="@string/profile_proposals_label" />
460
461 <TextView
462 android:id="@+id/proposal_intro"
463 android:layout_width="match_parent"
464 android:layout_height="wrap_content"
465 android:layout_marginTop="10dp"
466 android:layout_marginBottom="10dp"
467 android:layout_marginLeft="4dp"
468 android:textSize="12sp"
469 android:text="@string/profile_proposals_intro" />
470
471 <org.strongswan.android.ui.widget.TextInputLayoutHelper
472 android:id="@+id/ike_proposal_wrap"
473 android:layout_width="match_parent"
474 android:layout_height="wrap_content"
475 android:hint="@string/profile_proposals_ike_label"
476 app:helper_text="@string/profile_proposals_ike_hint" >
477
478 <android.support.design.widget.TextInputEditText
479 android:id="@+id/ike_proposal"
480 android:layout_width="match_parent"
481 android:layout_height="wrap_content"
482 android:singleLine="true"
483 android:inputType="textNoSuggestions" />
484
485 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
486
487 <org.strongswan.android.ui.widget.TextInputLayoutHelper
488 android:id="@+id/esp_proposal_wrap"
489 android:layout_width="match_parent"
490 android:layout_height="wrap_content"
491 android:hint="@string/profile_proposals_esp_label"
492 app:helper_text="@string/profile_proposals_esp_hint" >
493
494 <android.support.design.widget.TextInputEditText
495 android:id="@+id/esp_proposal"
496 android:layout_width="match_parent"
497 android:layout_height="wrap_content"
498 android:singleLine="true"
499 android:inputType="textNoSuggestions" />
500
501 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
502
503 <TextView
504 android:id="@+id/profile_id_label"
505 android:layout_width="match_parent"
506 android:layout_height="wrap_content"
507 android:layout_marginTop="10dp"
508 android:layout_marginBottom="10dp"
509 android:layout_marginLeft="4dp"
510 android:layout_marginStart="4dp"
511 android:textSize="16sp"
512 android:text="@string/profile_profile_id" />
513
514 <TextView
515 android:id="@+id/profile_id"
516 android:layout_width="match_parent"
517 android:layout_height="wrap_content"
518 android:layout_marginTop="10dp"
519 android:layout_marginBottom="10dp"
520 android:layout_marginLeft="4dp"
521 android:textSize="12sp"
522 android:textIsSelectable="true" />
523
524 </LinearLayout>
525
526 </LinearLayout>
527
528 </ScrollView>