From 6dfe75cdd9a9f468e6af9cd3d92fb53d3d8af643 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Tue, 28 Nov 2017 16:36:20 +0200 Subject: [PATCH] Add bottom buttons for context menu --- .../res/layout/map_context_menu_fragment.xml | 66 +++++++++++++------ .../plus/mapcontextmenu/MapContextMenu.java | 4 +- .../MapContextMenuFragment.java | 27 +++++--- .../osmand/plus/views/MapControlsLayer.java | 4 +- 4 files changed, 68 insertions(+), 33 deletions(-) diff --git a/OsmAnd/res/layout/map_context_menu_fragment.xml b/OsmAnd/res/layout/map_context_menu_fragment.xml index 92101ccb62..5843952d84 100644 --- a/OsmAnd/res/layout/map_context_menu_fragment.xml +++ b/OsmAnd/res/layout/map_context_menu_fragment.xml @@ -5,7 +5,8 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/transparent"> + android:background="@android:color/transparent" + xmlns:osmand="http://schemas.android.com/apk/res-auto"> - - - - - - + + + + + + + + + + 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { - navigateFab(); + navigateButton(); } else if (requestCode == REQUEST_LOCATION_FOR_ADD_DESTINATION_PERMISSION && grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {