]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/frontends/android/app/src/main/res/layout/profile_detail_view.xml
d4d88314d013ca0b4d6b2691e4996ab08c9a8291
[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-2017 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 app:helper_text="@string/profile_gateway_hint" >
36
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>
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
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" />
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 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>
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 app:helper_text="@string/profile_name_hint" >
165
166 <MultiAutoCompleteTextView
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"
172 android:completionThreshold="1"
173 android:hint="@string/profile_name_label" />
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 app:helper_text="@string/profile_remote_id_hint" >
203
204 <MultiAutoCompleteTextView
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"
210 android:completionThreshold="1"
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"
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" />
228
229 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
230
231 <org.strongswan.android.ui.widget.TextInputLayoutHelper
232 android:id="@+id/port_wrap"
233 android:layout_width="match_parent"
234 android:layout_height="wrap_content"
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>
246
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
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
280 <TextView
281 android:layout_width="match_parent"
282 android:layout_height="wrap_content"
283 android:layout_marginTop="10dp"
284 android:layout_marginBottom="10dp"
285 android:layout_marginLeft="4dp"
286 android:layout_marginStart="4dp"
287 android:textSize="20sp"
288 android:text="@string/profile_split_tunneling_label" />
289
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
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
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
343 <TextView
344 android:id="@+id/apps"
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
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
417 </LinearLayout>
418
419 </LinearLayout>
420
421 </ScrollView>