From bac3639c3f3afb4586e4a3e4794bd8d1bf48c9bf Mon Sep 17 00:00:00 2001 From: Daniele Date: Tue, 7 Sep 2021 08:57:56 +0200 Subject: [PATCH] WIP list context menu --- .../activity/main/GeofavoriteAdapter.java | 11 ++++++++++- .../nextcloudmaps/activity/main/MainActivity.java | 9 +++++---- app/src/main/res/menu/list_context_menu.xml | 12 ++++++++++++ app/src/main/res/values/strings.xml | 2 ++ 4 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/menu/list_context_menu.xml diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/GeofavoriteAdapter.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/GeofavoriteAdapter.java index bda26ac..1d7be0d 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/GeofavoriteAdapter.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/activity/main/GeofavoriteAdapter.java @@ -23,7 +23,9 @@ package it.danieleverducci.nextcloudmaps.activity.main; import android.content.Context; import android.content.Intent; import android.text.Html; +import android.view.ContextMenu; import android.view.LayoutInflater; +import android.view.MenuInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Filter; @@ -141,7 +143,7 @@ public class GeofavoriteAdapter extends RecyclerView.Adapter presenter.getGeofavorites()); diff --git a/app/src/main/res/menu/list_context_menu.xml b/app/src/main/res/menu/list_context_menu.xml new file mode 100644 index 0000000..add86b2 --- /dev/null +++ b/app/src/main/res/menu/list_context_menu.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 275068f..b27a7a0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -31,6 +31,8 @@ Search by name Share via Check out this place: {lat}°N, {lng}°E + Details + Delete Sort by