android: Spinner added to select the VPN type
[strongswan.git] / src / frontends / android / res / layout / profile_detail_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2012 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="dialog"
66 android:entries="@array/vpn_types" />
67
68 <LinearLayout
69 android:id="@+id/username_password_group"
70 android:layout_width="match_parent"
71 android:layout_height="wrap_content"
72 android:orientation="vertical" >
73
74 <TextView
75 android:layout_width="match_parent"
76 android:layout_height="wrap_content"
77 android:layout_marginTop="10dp"
78 android:text="@string/profile_username_label" />
79
80 <EditText
81 android:id="@+id/username"
82 android:layout_width="match_parent"
83 android:layout_height="wrap_content"
84 android:singleLine="true"
85 android:inputType="textNoSuggestions" />
86
87 <TextView
88 android:layout_width="match_parent"
89 android:layout_height="wrap_content"
90 android:layout_marginTop="10dp"
91 android:text="@string/profile_password_label" />
92
93 <EditText
94 android:id="@+id/password"
95 android:layout_width="match_parent"
96 android:layout_height="wrap_content"
97 android:singleLine="true"
98 android:inputType="textPassword|textNoSuggestions"
99 android:hint="@string/profile_password_hint" />
100
101 </LinearLayout>
102
103 <TextView
104 android:layout_width="match_parent"
105 android:layout_height="wrap_content"
106 android:layout_marginTop="10dp"
107 android:text="@string/profile_ca_label" />
108
109 <CheckBox
110 android:id="@+id/ca_auto"
111 android:layout_width="match_parent"
112 android:layout_height="wrap_content"
113 android:text="@string/profile_ca_auto_label" />
114
115 <RelativeLayout
116 android:id="@+id/select_certificate"
117 android:layout_width="match_parent"
118 android:layout_height="wrap_content"
119 android:minHeight="?android:attr/listPreferredItemHeight"
120 android:background="?android:attr/selectableItemBackground"
121 android:padding="10dp" >
122
123 <TextView
124 android:id="@+id/select_certificate_title"
125 android:layout_width="match_parent"
126 android:layout_height="wrap_content"
127 android:textAppearance="?android:attr/textAppearanceMedium"
128 android:text="@string/profile_ca_select_certificate_label" />
129
130 <TextView
131 android:id="@+id/select_certificate_subtitle"
132 android:layout_width="match_parent"
133 android:layout_height="wrap_content"
134 android:layout_below="@id/select_certificate_title"
135 android:layout_alignLeft="@id/select_certificate_title"
136 android:textAppearance="?android:attr/textAppearanceSmall"
137 android:textColor="?android:attr/textColorSecondary"
138 android:text="@string/profile_ca_select_certificate" />
139
140 </RelativeLayout>
141
142 </LinearLayout>
143
144 </ScrollView>