2012-07-17 17:23:21 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2012 Tobias Brunner
|
|
|
|
Copyright (C) 2012 Giuliano Grassi
|
|
|
|
Copyright (C) 2012 Ralf Sager
|
|
|
|
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.
|
|
|
|
-->
|
|
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent" >
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="10dp" >
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:text="@string/profile_name_label" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/name"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:inputType="textNoSuggestions"
|
|
|
|
android:hint="@string/profile_name_hint" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:text="@string/profile_gateway_label" />
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/gateway"
|
|
|
|
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"
|
2012-08-27 14:51:41 +00:00
|
|
|
android:text="@string/profile_vpn_type_label" />
|
2012-07-17 17:23:21 +00:00
|
|
|
|
2012-08-27 14:51:41 +00:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/vpn_type"
|
2012-07-17 17:23:21 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2012-08-27 14:51:41 +00:00
|
|
|
android:spinnerMode="dialog"
|
|
|
|
android:entries="@array/vpn_types" />
|
2012-07-17 17:23:21 +00:00
|
|
|
|
2012-08-27 14:51:41 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/username_password_group"
|
2012-07-17 17:23:21 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2012-08-27 14:51:41 +00:00
|
|
|
android:orientation="vertical" >
|
2012-07-17 17:23:21 +00:00
|
|
|
|
2012-08-27 14:51:41 +00:00
|
|
|
<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>
|
2012-07-17 17:23:21 +00:00
|
|
|
|
2012-08-07 16:03:51 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:text="@string/profile_ca_label" />
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/ca_auto"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/profile_ca_auto_label" />
|
|
|
|
|
2012-08-27 15:58:09 +00:00
|
|
|
<include
|
2012-08-14 09:47:32 +00:00
|
|
|
android:id="@+id/select_certificate"
|
2012-08-27 15:58:09 +00:00
|
|
|
layout="@layout/certificate_selector" />
|
2012-08-14 09:47:32 +00:00
|
|
|
|
2012-07-17 17:23:21 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</ScrollView>
|