diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-16 00:55:44 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-16 00:55:44 -0500 |
commit | 73217a098a264e3da8497b2c3696c8816004ca64 (patch) | |
tree | ea654a9ae85806eec9005f9882b4f6b2b0cf6173 /app/src/main/res | |
parent | f1d97a585a66613a1080cde7bb9b6d633ecc4582 (diff) |
ConfigListFragment: Implement config selection and removal
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/drawable/ic_action_delete.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/menu/config_list_delete.xml | 9 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 5 |
3 files changed, 23 insertions, 0 deletions
diff --git a/app/src/main/res/drawable/ic_action_delete.xml b/app/src/main/res/drawable/ic_action_delete.xml new file mode 100644 index 00000000..fe6b85f7 --- /dev/null +++ b/app/src/main/res/drawable/ic_action_delete.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="48dp" + android:height="48dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z" + android:fillColor="#FFFFFF"/> +</vector> diff --git a/app/src/main/res/menu/config_list_delete.xml b/app/src/main/res/menu/config_list_delete.xml new file mode 100644 index 00000000..7896d522 --- /dev/null +++ b/app/src/main/res/menu/config_list_delete.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/menu_action_delete" + android:alphabeticShortcut="d" + android:icon="@drawable/ic_action_delete" + android:showAsAction="always" + android:title="@string/delete" /> +</menu> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ab82e7fe..bba997e2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,5 +1,9 @@ <?xml version="1.0" encoding="utf-8"?> <resources> + <plurals name="list_delete_title"> + <item quantity="one">%d configuration selected</item> + <item quantity="other">%d configurations selected</item> + </plurals> <string name="app_name">WireGuard</string> <string name="config_name">Configuration name</string> <string name="connected">Connected</string> @@ -19,4 +23,5 @@ <string name="public_key">Public key</string> <string name="save">Save</string> <string name="settings">Settings</string> + <string name="delete">Delete</string> </resources> |