Fragment added to list the VPN profiles

This commit is contained in:
Tobias Brunner
2012-08-11 15:10:34 +02:00
parent 03a5a63c03
commit 7329618cc2
3 changed files with 118 additions and 1 deletions
@@ -0,0 +1,38 @@
<?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.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="10dp"
android:paddingTop="10dp"
android:paddingLeft="5dp"
android:paddingRight="5dp" >
<ListView
android:id="@+id/profile_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:dividerHeight="1dp"
android:divider="?android:attr/listDivider"
android:scrollbarAlwaysDrawVerticalTrack="true" />
<TextView android:id="@+id/profile_list_empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="15dp"
android:text="@string/no_profiles"/>
</FrameLayout>
+3 -1
View File
@@ -21,7 +21,9 @@
<string name="app_name">strongSwan VPN Client</string>
<string name="hello">Hello World, strongSwanActivity!</string>
<!-- VPN profile list -->
<string name="no_profiles">No VPN profiles.</string>
<string name="profile_gateway_label">Gateway:</string>
<string name="profile_username_label">Username:</string>
</resources>
</resources>