Use a contextual action bar to edit and delete selected VPN profiles

This commit is contained in:
Tobias Brunner
2012-08-11 15:10:35 +02:00
parent a3e2f127dc
commit c6b736b9f5
4 changed files with 146 additions and 1 deletions
@@ -0,0 +1,24 @@
<?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.
-->
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/edit_profile"
android:title="@string/edit_profile" ></item>
<item android:id="@+id/delete_profile"
android:title="@string/delete_profile" ></item>
</menu>
@@ -23,6 +23,12 @@
<!-- VPN profile list -->
<string name="no_profiles">No VPN profiles.</string>
<string name="add_profile">Add VPN profile</string>
<string name="edit_profile">Edit</string>
<string name="delete_profile">Delete</string>
<string name="profiles_deleted">Selected profiles deleted</string>
<string name="no_profile_selected">No profile selected</string>
<string name="one_profile_selected">One profile selected</string>
<string name="x_profiles_selected">%1$d profiles selected"</string>
<!-- VPN profile details -->
<string name="profile_edit_save">Save</string>