]>
Commit | Line | Data |
---|---|---|
56a922b2 TB |
1 | <?xml version="1.0" encoding="utf-8"?> |
2 | <!-- | |
1a63e8e4 | 3 | Copyright (C) 2012-2017 Tobias Brunner |
56a922b2 TB |
4 | Copyright (C) 2012 Giuliano Grassi |
5 | Copyright (C) 2012 Ralf Sager | |
fd23ed8c | 6 | HSR Hochschule fuer Technik Rapperswil |
56a922b2 TB |
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" | |
ea15f20a TB |
19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
20 | android:layout_width="match_parent" | |
21 | android:layout_height="match_parent" > | |
56a922b2 TB |
22 | |
23 | <LinearLayout | |
24 | android:layout_width="match_parent" | |
25 | android:layout_height="wrap_content" | |
26 | android:orientation="vertical" | |
ea15f20a TB |
27 | android:padding="10dp" |
28 | android:animateLayoutChanges="true" > | |
56a922b2 | 29 | |
ea15f20a TB |
30 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
31 | android:id="@+id/gateway_wrap" | |
56a922b2 TB |
32 | android:layout_width="match_parent" |
33 | android:layout_height="wrap_content" | |
ea15f20a TB |
34 | android:layout_marginTop="6dp" |
35 | app:helper_text="@string/profile_gateway_hint" > | |
56a922b2 | 36 | |
ea15f20a TB |
37 | <android.support.design.widget.TextInputEditText |
38 | android:id="@+id/gateway" | |
39 | android:layout_width="match_parent" | |
40 | android:layout_height="wrap_content" | |
41 | android:singleLine="true" | |
42 | android:inputType="textNoSuggestions" | |
43 | android:hint="@string/profile_gateway_label" /> | |
44 | ||
45 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
56a922b2 TB |
46 | |
47 | <TextView | |
48 | android:layout_width="match_parent" | |
49 | android:layout_height="wrap_content" | |
ea15f20a TB |
50 | android:layout_marginLeft="4dp" |
51 | android:textSize="12sp" | |
825c192d | 52 | android:text="@string/profile_vpn_type_label" /> |
56a922b2 | 53 | |
825c192d TB |
54 | <Spinner |
55 | android:id="@+id/vpn_type" | |
56a922b2 TB |
56 | android:layout_width="match_parent" |
57 | android:layout_height="wrap_content" | |
f46da851 | 58 | android:spinnerMode="dropdown" |
825c192d | 59 | android:entries="@array/vpn_types" /> |
56a922b2 | 60 | |
e1a98e79 TB |
61 | <include |
62 | android:id="@+id/tnc_notice" | |
63 | layout="@layout/two_line_button" | |
64 | android:visibility="gone" /> | |
65 | ||
825c192d TB |
66 | <LinearLayout |
67 | android:id="@+id/username_password_group" | |
56a922b2 TB |
68 | android:layout_width="match_parent" |
69 | android:layout_height="wrap_content" | |
825c192d | 70 | android:orientation="vertical" > |
56a922b2 | 71 | |
ea15f20a TB |
72 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
73 | android:id="@+id/username_wrap" | |
825c192d | 74 | android:layout_width="match_parent" |
ea15f20a | 75 | android:layout_height="wrap_content" > |
825c192d | 76 | |
ea15f20a TB |
77 | <android.support.design.widget.TextInputEditText |
78 | android:id="@+id/username" | |
79 | android:layout_width="match_parent" | |
80 | android:layout_height="wrap_content" | |
81 | android:singleLine="true" | |
82 | android:inputType="textNoSuggestions" | |
83 | android:hint="@string/profile_username_label" /> | |
825c192d | 84 | |
ea15f20a | 85 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> |
825c192d | 86 | |
ea15f20a TB |
87 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
88 | android:id="@+id/password_wrap" | |
825c192d TB |
89 | android:layout_width="match_parent" |
90 | android:layout_height="wrap_content" | |
ea15f20a TB |
91 | android:layout_marginTop="4dp" |
92 | app:helper_text="@string/profile_password_hint" > | |
93 | ||
94 | <android.support.design.widget.TextInputEditText | |
95 | android:id="@+id/password" | |
96 | android:layout_width="match_parent" | |
97 | android:layout_height="wrap_content" | |
98 | android:singleLine="true" | |
99 | android:inputType="textPassword|textNoSuggestions" | |
100 | android:hint="@string/profile_password_label" /> | |
101 | ||
102 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
825c192d TB |
103 | |
104 | </LinearLayout> | |
56a922b2 | 105 | |
f46da851 TB |
106 | <LinearLayout |
107 | android:id="@+id/user_certificate_group" | |
108 | android:layout_width="match_parent" | |
109 | android:layout_height="wrap_content" | |
ea15f20a | 110 | android:layout_marginBottom="4dp" |
f46da851 TB |
111 | android:orientation="vertical" > |
112 | ||
113 | <TextView | |
114 | android:layout_width="match_parent" | |
115 | android:layout_height="wrap_content" | |
ea15f20a TB |
116 | android:layout_marginTop="4dp" |
117 | android:layout_marginLeft="4dp" | |
118 | android:textSize="12sp" | |
f46da851 TB |
119 | android:text="@string/profile_user_certificate_label" /> |
120 | ||
121 | <include | |
122 | android:id="@+id/select_user_certificate" | |
93904995 | 123 | layout="@layout/two_line_button" /> |
f46da851 | 124 | |
67fa05aa TB |
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 | ||
f46da851 TB |
139 | </LinearLayout> |
140 | ||
fcb54480 TB |
141 | <TextView |
142 | android:layout_width="match_parent" | |
143 | android:layout_height="wrap_content" | |
ea15f20a TB |
144 | android:layout_marginLeft="4dp" |
145 | android:textSize="12sp" | |
fcb54480 TB |
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" | |
ea15f20a | 152 | android:layout_marginTop="4dp" |
fcb54480 TB |
153 | android:text="@string/profile_ca_auto_label" /> |
154 | ||
d0f6481e | 155 | <include |
4db2d633 | 156 | android:id="@+id/select_certificate" |
93904995 | 157 | layout="@layout/two_line_button" /> |
4db2d633 | 158 | |
ea15f20a TB |
159 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
160 | android:id="@+id/name_wrap" | |
fd23ed8c TB |
161 | android:layout_width="match_parent" |
162 | android:layout_height="wrap_content" | |
ea15f20a TB |
163 | android:layout_marginTop="8dp" |
164 | app:helper_text="@string/profile_name_hint" > | |
fd23ed8c | 165 | |
e7a12cc8 | 166 | <MultiAutoCompleteTextView |
ea15f20a TB |
167 | android:id="@+id/name" |
168 | android:layout_width="match_parent" | |
169 | android:layout_height="wrap_content" | |
170 | android:singleLine="true" | |
171 | android:inputType="textNoSuggestions" | |
e7a12cc8 | 172 | android:completionThreshold="1" |
ea15f20a TB |
173 | android:hint="@string/profile_name_label" /> |
174 | ||
175 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
fd23ed8c | 176 | |
c6822051 TB |
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" | |
ea15f20a TB |
193 | android:layout_marginLeft="4dp" |
194 | android:textSize="20sp" | |
195 | android:text="@string/profile_advanced_label" /> | |
c6822051 | 196 | |
ea15f20a | 197 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
c5fee223 | 198 | android:id="@+id/remote_id_wrap" |
6c0ec35c TB |
199 | android:layout_width="match_parent" |
200 | android:layout_height="wrap_content" | |
201 | android:layout_marginTop="10dp" | |
c5fee223 TB |
202 | app:helper_text="@string/profile_remote_id_hint" > |
203 | ||
e7a12cc8 | 204 | <MultiAutoCompleteTextView |
c5fee223 TB |
205 | android:id="@+id/remote_id" |
206 | android:layout_width="match_parent" | |
207 | android:layout_height="wrap_content" | |
208 | android:singleLine="true" | |
209 | android:inputType="textNoSuggestions" | |
e7a12cc8 | 210 | android:completionThreshold="1" |
c5fee223 TB |
211 | android:hint="@string/profile_remote_id_label" /> |
212 | ||
213 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
214 | ||
215 | <org.strongswan.android.ui.widget.TextInputLayoutHelper | |
216 | android:id="@+id/mtu_wrap" | |
217 | android:layout_width="match_parent" | |
218 | android:layout_height="wrap_content" | |
ea15f20a TB |
219 | app:helper_text="@string/profile_mtu_hint" > |
220 | ||
221 | <android.support.design.widget.TextInputEditText | |
222 | android:id="@+id/mtu" | |
223 | android:layout_width="match_parent" | |
224 | android:layout_height="wrap_content" | |
225 | android:singleLine="true" | |
226 | android:inputType="number|textNoSuggestions" | |
227 | android:hint="@string/profile_mtu_label" /> | |
6c0ec35c | 228 | |
ea15f20a TB |
229 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> |
230 | ||
231 | <org.strongswan.android.ui.widget.TextInputLayoutHelper | |
232 | android:id="@+id/port_wrap" | |
6c0ec35c TB |
233 | android:layout_width="match_parent" |
234 | android:layout_height="wrap_content" | |
ea15f20a TB |
235 | app:helper_text="@string/profile_port_hint" > |
236 | ||
237 | <android.support.design.widget.TextInputEditText | |
238 | android:id="@+id/port" | |
239 | android:layout_width="match_parent" | |
240 | android:layout_height="wrap_content" | |
241 | android:singleLine="true" | |
242 | android:inputType="number|textNoSuggestions" | |
243 | android:hint="@string/profile_port_label" /> | |
244 | ||
245 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
6c0ec35c | 246 | |
a2aa0ca0 TB |
247 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
248 | android:id="@+id/nat_keepalive_wrap" | |
249 | android:layout_width="match_parent" | |
250 | android:layout_height="wrap_content" | |
251 | app:helper_text="@string/profile_nat_keepalive_hint" > | |
252 | ||
253 | <android.support.design.widget.TextInputEditText | |
254 | android:id="@+id/nat_keepalive" | |
255 | android:layout_width="match_parent" | |
256 | android:layout_height="wrap_content" | |
257 | android:singleLine="true" | |
258 | android:inputType="number|textNoSuggestions" | |
259 | android:hint="@string/profile_nat_keepalive_label" /> | |
260 | ||
261 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
262 | ||
8ae7f8b7 TB |
263 | <Switch |
264 | android:id="@+id/cert_req" | |
265 | android:layout_width="match_parent" | |
266 | android:layout_height="wrap_content" | |
267 | android:layout_marginLeft="4dp" | |
268 | android:layout_marginStart="4dp" | |
269 | android:text="@string/profile_cert_req_label" /> | |
270 | ||
271 | <TextView | |
272 | android:layout_width="match_parent" | |
273 | android:layout_height="wrap_content" | |
274 | android:layout_marginBottom="10dp" | |
275 | android:layout_marginLeft="4dp" | |
276 | android:layout_marginStart="4dp" | |
277 | android:textSize="12sp" | |
278 | android:text="@string/profile_cert_req_hint" /> | |
279 | ||
3ee84fa9 TB |
280 | <TextView |
281 | android:layout_width="match_parent" | |
282 | android:layout_height="wrap_content" | |
283 | android:layout_marginTop="10dp" | |
1a63e8e4 | 284 | android:layout_marginBottom="10dp" |
ea15f20a | 285 | android:layout_marginLeft="4dp" |
291ef58c | 286 | android:layout_marginStart="4dp" |
1a63e8e4 | 287 | android:textSize="20sp" |
3ee84fa9 TB |
288 | android:text="@string/profile_split_tunneling_label" /> |
289 | ||
05c5e894 TB |
290 | <TextView |
291 | android:layout_width="match_parent" | |
292 | android:layout_height="wrap_content" | |
293 | android:layout_marginTop="10dp" | |
294 | android:layout_marginBottom="10dp" | |
295 | android:layout_marginLeft="4dp" | |
296 | android:textSize="12sp" | |
297 | android:text="@string/profile_split_tunneling_intro" /> | |
298 | ||
299 | <org.strongswan.android.ui.widget.TextInputLayoutHelper | |
300 | android:id="@+id/included_subnets_wrap" | |
301 | android:layout_width="match_parent" | |
302 | android:layout_height="wrap_content" | |
303 | app:helper_text="@string/profile_included_subnets_hint" > | |
304 | ||
305 | <android.support.design.widget.TextInputEditText | |
306 | android:id="@+id/included_subnets" | |
307 | android:layout_width="match_parent" | |
308 | android:layout_height="wrap_content" | |
309 | android:singleLine="true" | |
310 | android:inputType="textNoSuggestions" | |
311 | android:hint="@string/profile_included_subnets_label" /> | |
312 | ||
313 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
314 | ||
1a63e8e4 TB |
315 | <org.strongswan.android.ui.widget.TextInputLayoutHelper |
316 | android:id="@+id/excluded_subnets_wrap" | |
317 | android:layout_width="match_parent" | |
318 | android:layout_height="wrap_content" | |
319 | app:helper_text="@string/profile_excluded_subnets_hint" > | |
320 | ||
321 | <android.support.design.widget.TextInputEditText | |
322 | android:id="@+id/excluded_subnets" | |
323 | android:layout_width="match_parent" | |
324 | android:layout_height="wrap_content" | |
325 | android:singleLine="true" | |
326 | android:inputType="textNoSuggestions" | |
327 | android:hint="@string/profile_excluded_subnets_label" /> | |
328 | ||
329 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
330 | ||
3ee84fa9 TB |
331 | <CheckBox |
332 | android:id="@+id/split_tunneling_v4" | |
333 | android:layout_width="match_parent" | |
334 | android:layout_height="wrap_content" | |
335 | android:text="@string/profile_split_tunnelingv4_title" /> | |
336 | ||
337 | <CheckBox | |
338 | android:id="@+id/split_tunneling_v6" | |
339 | android:layout_width="match_parent" | |
340 | android:layout_height="wrap_content" | |
341 | android:text="@string/profile_split_tunnelingv6_title" /> | |
342 | ||
291ef58c | 343 | <TextView |
98ab7572 | 344 | android:id="@+id/apps" |
291ef58c TB |
345 | android:layout_width="match_parent" |
346 | android:layout_height="wrap_content" | |
347 | android:layout_marginTop="20dp" | |
348 | android:layout_marginBottom="10dp" | |
349 | android:layout_marginLeft="4dp" | |
350 | android:layout_marginStart="4dp" | |
351 | android:textSize="20sp" | |
352 | android:text="@string/profile_select_apps_label" /> | |
353 | ||
354 | <Spinner | |
355 | android:id="@+id/apps_handling" | |
356 | android:layout_width="match_parent" | |
357 | android:layout_height="wrap_content" | |
358 | android:spinnerMode="dropdown" | |
359 | android:entries="@array/apps_handling" /> | |
360 | ||
361 | <include | |
362 | android:id="@+id/select_applications" | |
363 | layout="@layout/two_line_button" /> | |
364 | ||
2d1f65fe TB |
365 | <TextView |
366 | android:layout_width="match_parent" | |
367 | android:layout_height="wrap_content" | |
368 | android:layout_marginTop="10dp" | |
369 | android:layout_marginBottom="10dp" | |
370 | android:layout_marginLeft="4dp" | |
371 | android:layout_marginStart="4dp" | |
372 | android:textSize="20sp" | |
373 | android:text="@string/profile_proposals_label" /> | |
374 | ||
375 | <TextView | |
376 | android:id="@+id/proposal_intro" | |
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_proposals_intro" /> | |
384 | ||
385 | <org.strongswan.android.ui.widget.TextInputLayoutHelper | |
386 | android:id="@+id/ike_proposal_wrap" | |
387 | android:layout_width="match_parent" | |
388 | android:layout_height="wrap_content" | |
389 | app:helper_text="@string/profile_proposals_ike_hint" > | |
390 | ||
391 | <android.support.design.widget.TextInputEditText | |
392 | android:id="@+id/ike_proposal" | |
393 | android:layout_width="match_parent" | |
394 | android:layout_height="wrap_content" | |
395 | android:singleLine="true" | |
396 | android:inputType="textNoSuggestions" | |
397 | android:hint="@string/profile_proposals_ike_label" /> | |
398 | ||
399 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
400 | ||
401 | <org.strongswan.android.ui.widget.TextInputLayoutHelper | |
402 | android:id="@+id/esp_proposal_wrap" | |
403 | android:layout_width="match_parent" | |
404 | android:layout_height="wrap_content" | |
405 | app:helper_text="@string/profile_proposals_esp_hint" > | |
406 | ||
407 | <android.support.design.widget.TextInputEditText | |
408 | android:id="@+id/esp_proposal" | |
409 | android:layout_width="match_parent" | |
410 | android:layout_height="wrap_content" | |
411 | android:singleLine="true" | |
412 | android:inputType="textNoSuggestions" | |
413 | android:hint="@string/profile_proposals_esp_label" /> | |
414 | ||
415 | </org.strongswan.android.ui.widget.TextInputLayoutHelper> | |
416 | ||
71f4a20a TB |
417 | <TextView |
418 | android:id="@+id/profile_id_label" | |
419 | android:layout_width="match_parent" | |
420 | android:layout_height="wrap_content" | |
421 | android:layout_marginTop="10dp" | |
422 | android:layout_marginBottom="10dp" | |
423 | android:layout_marginLeft="4dp" | |
424 | android:layout_marginStart="4dp" | |
425 | android:textSize="16sp" | |
426 | android:text="@string/profile_profile_id" /> | |
427 | ||
428 | <TextView | |
429 | android:id="@+id/profile_id" | |
430 | android:layout_width="match_parent" | |
431 | android:layout_height="wrap_content" | |
432 | android:layout_marginTop="10dp" | |
433 | android:layout_marginBottom="10dp" | |
434 | android:layout_marginLeft="4dp" | |
435 | android:textSize="12sp" | |
436 | android:textIsSelectable="true" /> | |
437 | ||
c6822051 | 438 | </LinearLayout> |
fd23ed8c | 439 | |
56a922b2 TB |
440 | </LinearLayout> |
441 | ||
ea15f20a | 442 | </ScrollView> |