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