57d5606ffc706427e4210de068a2c146afe6b36c
[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-2015 Tobias Brunner
4 Copyright (C) 2012 Giuliano Grassi
5 Copyright (C) 2012 Ralf Sager
6 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 android:layout_width="match_parent"
20 android:layout_height="match_parent" >
21
22 <LinearLayout
23 android:layout_width="match_parent"
24 android:layout_height="wrap_content"
25 android:orientation="vertical"
26 android:padding="10dp" >
27
28 <TextView
29 android:layout_width="match_parent"
30 android:layout_height="wrap_content"
31 android:layout_marginTop="10dp"
32 android:text="@string/profile_name_label" />
33
34 <EditText
35 android:id="@+id/name"
36 android:layout_width="match_parent"
37 android:layout_height="wrap_content"
38 android:singleLine="true"
39 android:inputType="textNoSuggestions"
40 android:hint="@string/profile_name_hint" />
41
42 <TextView
43 android:layout_width="match_parent"
44 android:layout_height="wrap_content"
45 android:layout_marginTop="10dp"
46 android:text="@string/profile_gateway_label" />
47
48 <EditText
49 android:id="@+id/gateway"
50 android:layout_width="match_parent"
51 android:layout_height="wrap_content"
52 android:singleLine="true"
53 android:inputType="textNoSuggestions" />
54
55 <TextView
56 android:layout_width="match_parent"
57 android:layout_height="wrap_content"
58 android:layout_marginTop="10dp"
59 android:text="@string/profile_vpn_type_label" />
60
61 <Spinner
62 android:id="@+id/vpn_type"
63 android:layout_width="match_parent"
64 android:layout_height="wrap_content"
65 android:spinnerMode="dropdown"
66 android:entries="@array/vpn_types" />
67
68 <include
69 android:id="@+id/tnc_notice"
70 layout="@layout/two_line_button"
71 android:visibility="gone" />
72
73 <LinearLayout
74 android:id="@+id/username_password_group"
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:orientation="vertical" >
78
79 <TextView
80 android:layout_width="match_parent"
81 android:layout_height="wrap_content"
82 android:layout_marginTop="10dp"
83 android:text="@string/profile_username_label" />
84
85 <EditText
86 android:id="@+id/username"
87 android:layout_width="match_parent"
88 android:layout_height="wrap_content"
89 android:singleLine="true"
90 android:inputType="textNoSuggestions" />
91
92 <TextView
93 android:layout_width="match_parent"
94 android:layout_height="wrap_content"
95 android:layout_marginTop="10dp"
96 android:text="@string/profile_password_label" />
97
98 <EditText
99 android:id="@+id/password"
100 android:layout_width="match_parent"
101 android:layout_height="wrap_content"
102 android:singleLine="true"
103 android:inputType="textPassword|textNoSuggestions"
104 android:hint="@string/profile_password_hint" />
105
106 </LinearLayout>
107
108 <LinearLayout
109 android:id="@+id/user_certificate_group"
110 android:layout_width="match_parent"
111 android:layout_height="wrap_content"
112 android:orientation="vertical" >
113
114 <TextView
115 android:layout_width="match_parent"
116 android:layout_height="wrap_content"
117 android:layout_marginTop="10dp"
118 android:text="@string/profile_user_certificate_label" />
119
120 <include
121 android:id="@+id/select_user_certificate"
122 layout="@layout/two_line_button" />
123
124 </LinearLayout>
125
126 <TextView
127 android:layout_width="match_parent"
128 android:layout_height="wrap_content"
129 android:layout_marginTop="10dp"
130 android:text="@string/profile_ca_label" />
131
132 <CheckBox
133 android:id="@+id/ca_auto"
134 android:layout_width="match_parent"
135 android:layout_height="wrap_content"
136 android:text="@string/profile_ca_auto_label" />
137
138 <include
139 android:id="@+id/select_certificate"
140 layout="@layout/two_line_button" />
141
142 <CheckBox
143 android:id="@+id/show_advanced"
144 android:layout_width="match_parent"
145 android:layout_height="wrap_content"
146 android:text="@string/profile_show_advanced_label" />
147
148 <LinearLayout
149 android:id="@+id/advanced_settings"
150 android:layout_width="match_parent"
151 android:layout_height="wrap_content"
152 android:orientation="vertical" >
153
154 <TextView
155 android:layout_width="match_parent"
156 android:layout_height="wrap_content"
157 android:layout_marginTop="10dp"
158 android:text="@string/profile_mtu_label" />
159
160 <EditText
161 android:id="@+id/mtu"
162 android:layout_width="match_parent"
163 android:layout_height="wrap_content"
164 android:singleLine="true"
165 android:inputType="number|textNoSuggestions"
166 android:hint="@string/profile_use_default_hint" />
167
168 <TextView
169 android:layout_width="match_parent"
170 android:layout_height="wrap_content"
171 android:layout_marginTop="10dp"
172 android:text="@string/profile_port_label" />
173
174 <EditText
175 android:id="@+id/port"
176 android:layout_width="match_parent"
177 android:layout_height="wrap_content"
178 android:singleLine="true"
179 android:inputType="number|textNoSuggestions"
180 android:hint="@string/profile_use_default_hint" />
181
182 <TextView
183 android:layout_width="match_parent"
184 android:layout_height="wrap_content"
185 android:layout_marginTop="10dp"
186 android:text="@string/profile_split_tunneling_label" />
187
188 <CheckBox
189 android:id="@+id/split_tunneling_v4"
190 android:layout_width="match_parent"
191 android:layout_height="wrap_content"
192 android:text="@string/profile_split_tunnelingv4_title" />
193
194 <CheckBox
195 android:id="@+id/split_tunneling_v6"
196 android:layout_width="match_parent"
197 android:layout_height="wrap_content"
198 android:text="@string/profile_split_tunnelingv6_title" />
199
200 </LinearLayout>
201 </LinearLayout>
202
203 </ScrollView>