android: Make remote identity configurable in the GUI
[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-2016 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 </LinearLayout>
126
127 <TextView
128 android:layout_width="match_parent"
129 android:layout_height="wrap_content"
130 android:layout_marginLeft="4dp"
131 android:textSize="12sp"
132 android:text="@string/profile_ca_label" />
133
134 <CheckBox
135 android:id="@+id/ca_auto"
136 android:layout_width="match_parent"
137 android:layout_height="wrap_content"
138 android:layout_marginTop="4dp"
139 android:text="@string/profile_ca_auto_label" />
140
141 <include
142 android:id="@+id/select_certificate"
143 layout="@layout/two_line_button" />
144
145 <org.strongswan.android.ui.widget.TextInputLayoutHelper
146 android:id="@+id/name_wrap"
147 android:layout_width="match_parent"
148 android:layout_height="wrap_content"
149 android:layout_marginTop="8dp"
150 app:helper_text="@string/profile_name_hint" >
151
152 <android.support.design.widget.TextInputEditText
153 android:id="@+id/name"
154 android:layout_width="match_parent"
155 android:layout_height="wrap_content"
156 android:singleLine="true"
157 android:inputType="textNoSuggestions"
158 android:hint="@string/profile_name_label" />
159
160 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
161
162 <CheckBox
163 android:id="@+id/show_advanced"
164 android:layout_width="match_parent"
165 android:layout_height="wrap_content"
166 android:text="@string/profile_show_advanced_label" />
167
168 <LinearLayout
169 android:id="@+id/advanced_settings"
170 android:layout_width="match_parent"
171 android:layout_height="wrap_content"
172 android:orientation="vertical" >
173
174 <TextView
175 android:layout_width="match_parent"
176 android:layout_height="wrap_content"
177 android:layout_marginTop="10dp"
178 android:layout_marginLeft="4dp"
179 android:textSize="20sp"
180 android:text="@string/profile_advanced_label" />
181
182 <org.strongswan.android.ui.widget.TextInputLayoutHelper
183 android:id="@+id/remote_id_wrap"
184 android:layout_width="match_parent"
185 android:layout_height="wrap_content"
186 android:layout_marginTop="10dp"
187 app:helper_text="@string/profile_remote_id_hint" >
188
189 <android.support.design.widget.TextInputEditText
190 android:id="@+id/remote_id"
191 android:layout_width="match_parent"
192 android:layout_height="wrap_content"
193 android:singleLine="true"
194 android:inputType="textNoSuggestions"
195 android:hint="@string/profile_remote_id_label" />
196
197 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
198
199 <org.strongswan.android.ui.widget.TextInputLayoutHelper
200 android:id="@+id/mtu_wrap"
201 android:layout_width="match_parent"
202 android:layout_height="wrap_content"
203 app:helper_text="@string/profile_mtu_hint" >
204
205 <android.support.design.widget.TextInputEditText
206 android:id="@+id/mtu"
207 android:layout_width="match_parent"
208 android:layout_height="wrap_content"
209 android:singleLine="true"
210 android:inputType="number|textNoSuggestions"
211 android:hint="@string/profile_mtu_label" />
212
213 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
214
215 <org.strongswan.android.ui.widget.TextInputLayoutHelper
216 android:id="@+id/port_wrap"
217 android:layout_width="match_parent"
218 android:layout_height="wrap_content"
219 app:helper_text="@string/profile_port_hint" >
220
221 <android.support.design.widget.TextInputEditText
222 android:id="@+id/port"
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_port_label" />
228
229 </org.strongswan.android.ui.widget.TextInputLayoutHelper>
230
231 <TextView
232 android:layout_width="match_parent"
233 android:layout_height="wrap_content"
234 android:layout_marginTop="10dp"
235 android:layout_marginLeft="4dp"
236 android:textSize="12sp"
237 android:text="@string/profile_split_tunneling_label" />
238
239 <CheckBox
240 android:id="@+id/split_tunneling_v4"
241 android:layout_width="match_parent"
242 android:layout_height="wrap_content"
243 android:text="@string/profile_split_tunnelingv4_title" />
244
245 <CheckBox
246 android:id="@+id/split_tunneling_v6"
247 android:layout_width="match_parent"
248 android:layout_height="wrap_content"
249 android:text="@string/profile_split_tunnelingv6_title" />
250
251 </LinearLayout>
252
253 </LinearLayout>
254
255 </ScrollView>