android: Spinner added to select the VPN type
This commit is contained in:
@@ -56,28 +56,49 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/profile_username_label" />
|
||||
android:text="@string/profile_vpn_type_label" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/username"
|
||||
<Spinner
|
||||
android:id="@+id/vpn_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:inputType="textNoSuggestions" />
|
||||
android:spinnerMode="dialog"
|
||||
android:entries="@array/vpn_types" />
|
||||
|
||||
<TextView
|
||||
<LinearLayout
|
||||
android:id="@+id/username_password_group"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/profile_password_label" />
|
||||
android:orientation="vertical" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:inputType="textPassword|textNoSuggestions"
|
||||
android:hint="@string/profile_password_hint" />
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/profile_username_label" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/username"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:inputType="textNoSuggestions" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="10dp"
|
||||
android:text="@string/profile_password_label" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:singleLine="true"
|
||||
android:inputType="textPassword|textNoSuggestions"
|
||||
android:hint="@string/profile_password_hint" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Tobias Brunner
|
||||
Hochschule fuer Technik Rapperswil
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the
|
||||
Free Software Foundation; either version 2 of the License, or (at your
|
||||
option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
-->
|
||||
<resources>
|
||||
<!-- the order here must match the enum entries in VpnType.java -->
|
||||
<string-array name="vpn_types">
|
||||
<item>IKEv2 EAP (Benutzername/Passwort)</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -49,6 +49,7 @@
|
||||
<string name="profile_name_label">Profilname:</string>
|
||||
<string name="profile_name_hint">(Gateway-Adresse verwenden)</string>
|
||||
<string name="profile_gateway_label">Gateway:</string>
|
||||
<string name="profile_vpn_type_label">Typ:</string>
|
||||
<string name="profile_username_label">Benutzername:</string>
|
||||
<string name="profile_password_label">Passwort:</string>
|
||||
<string name="profile_password_hint">(anfordern wenn benötigt)</string>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Tobias Brunner
|
||||
Hochschule fuer Technik Rapperswil
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the
|
||||
Free Software Foundation; either version 2 of the License, or (at your
|
||||
option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
-->
|
||||
<resources>
|
||||
<!-- the order here must match the enum entries in VpnType.java -->
|
||||
<string-array name="vpn_types">
|
||||
<item>IKEv2 EAP (użytkownik/hasło)</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -51,6 +51,7 @@
|
||||
<string name="profile_name_label">Nazwa profilu:</string>
|
||||
<string name="profile_name_hint">(użyj adresu bramki)</string>
|
||||
<string name="profile_gateway_label">Bramka:</string>
|
||||
<string name="profile_vpn_type_label">Typ:</string>
|
||||
<string name="profile_username_label">Użytkownik:</string>
|
||||
<string name="profile_password_label">Hasło:</string>
|
||||
<string name="profile_password_hint">(w razie potrzebz zapromptuj)</string>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012 Tobias Brunner
|
||||
Hochschule fuer Technik Rapperswil
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the
|
||||
Free Software Foundation; either version 2 of the License, or (at your
|
||||
option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
-->
|
||||
<resources>
|
||||
<!-- the order here must match the enum entries in VpnType.java -->
|
||||
<string-array name="vpn_types">
|
||||
<item>IKEv2 EAP (Username/Password)</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
@@ -49,6 +49,7 @@
|
||||
<string name="profile_name_label">Profile Name:</string>
|
||||
<string name="profile_name_hint">(use gateway address)</string>
|
||||
<string name="profile_gateway_label">Gateway:</string>
|
||||
<string name="profile_vpn_type_label">Type:</string>
|
||||
<string name="profile_username_label">Username:</string>
|
||||
<string name="profile_password_label">Password:</string>
|
||||
<string name="profile_password_hint">(prompt when needed)</string>
|
||||
|
||||
Reference in New Issue
Block a user