From 44c812169712cb2e31b8bf0cbd650d83cac05b2f Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Thu, 29 Oct 2015 22:10:28 +0300 Subject: [PATCH] Context menu: audio and video menu in progress --- .../res/layout/map_context_menu_fragment.xml | 67 ++++++++++------ .../plus/audionotes/AudioNotesLayer.java | 12 +-- .../audionotes/AudioVideoNotesPlugin.java | 10 +++ .../mapcontextmenu/BaseMenuController.java | 16 ++++ .../plus/mapcontextmenu/MapContextMenu.java | 17 +--- .../MapContextMenuFragment.java | 34 ++++++-- .../plus/mapcontextmenu/MenuController.java | 64 ++++++++++----- .../AmenityMenuBuilder.java | 2 +- .../FavouritePointMenuBuilder.java | 2 +- .../AmenityMenuController.java | 8 +- .../FavouritePointMenuController.java | 8 +- .../HistoryMenuController.java | 7 +- .../MyLocationMenuController.java | 7 +- .../OsMoMenuController.java | 7 +- .../ParkingPositionMenuController.java | 33 +++----- .../PointDescriptionMenuController.java | 7 +- .../RecordingItemMenuController.java | 79 +++++++++++++++++++ .../TargetPointMenuController.java | 41 ++++------ 18 files changed, 262 insertions(+), 159 deletions(-) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => builders}/AmenityMenuBuilder.java (99%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => builders}/FavouritePointMenuBuilder.java (94%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/AmenityMenuController.java (94%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/FavouritePointMenuController.java (93%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/HistoryMenuController.java (91%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/MyLocationMenuController.java (88%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/OsMoMenuController.java (92%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/ParkingPositionMenuController.java (79%) rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/PointDescriptionMenuController.java (92%) create mode 100644 OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RecordingItemMenuController.java rename OsmAnd/src/net/osmand/plus/mapcontextmenu/{details => controllers}/TargetPointMenuController.java (71%) diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index 54f4357735..5d5f9e06d8 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -81,20 +81,6 @@ android:textColor="?android:textColorSecondary" android:textSize="@dimen/default_desc_text_size"/> -