]> git.ipfire.org Git - thirdparty/strongswan.git/blob - src/frontends/android/app/src/main/res/layout/profile_detail_view.xml
android: Make excluded subnets 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-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 <TextView
248 android:layout_width="match_parent"
249 android:layout_height="wrap_content"
250 android:layout_marginTop="10dp"
251 android:layout_marginBottom="10dp"
252 android:layout_marginLeft="4dp"
253 android:textSize="20sp"
254 android:text="@string/profile_split_tunneling_label" />
255
256 <org.strongswan.android.ui.widget.TextInputLayoutHelper
257 android:id="@+id/excluded_subnets_wrap"
258 android:layout_width="match_parent"
259 android:layout_height="wrap_content"
260 app:helper_text="@string/profile_excluded_subnets_hint" >
261
262 <android.support.design.widget.TextInputEditText
263 android:id="@+id/excluded_subnets"
264 android:layout_width="match_parent"
265 android:layout_height="wrap_content"
266 android:singleLine="true"
267 android:inputType="textNoSuggestions"
268 android:hint="@string/profile_excluded_subnets_label" />
269
270 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
271
272 <CheckBox
273 android:id="@+id/split_tunneling_v4"
274 android:layout_width="match_parent"
275 android:layout_height="wrap_content"
276 android:text="@string/profile_split_tunnelingv4_title" />
277
278 <CheckBox
279 android:id="@+id/split_tunneling_v6"
280 android:layout_width="match_parent"
281 android:layout_height="wrap_content"
282 android:text="@string/profile_split_tunnelingv6_title" />
283
284 </LinearLayout>
285
286 </LinearLayout>
287
288 </ScrollView>