From 99f22b89d9099483d4e5840e6f356e62dd87abad Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Thu, 22 Oct 2015 20:26:54 +0300 Subject: [PATCH] Context menu: new share menu, bug fixes --- OsmAnd/res/drawable/bg_bottom_menu_dark.xml | 12 + OsmAnd/res/drawable/bg_bottom_menu_light.xml | 12 + OsmAnd/res/drawable/bg_left_menu_dark.xml | 12 + OsmAnd/res/drawable/bg_left_menu_light.xml | 12 + .../res/layout-land/point_editor_fragment.xml | 256 ++++++++++++++++++ .../res/layout-land/share_menu_fragment.xml | 52 ++++ OsmAnd/res/layout/point_editor_fragment.xml | 2 +- .../res/layout/point_editor_fragment_land.xml | 246 ----------------- OsmAnd/res/layout/share_list_item.xml | 37 +++ OsmAnd/res/layout/share_menu_fragment.xml | 53 ++++ OsmAnd/res/values/attrs.xml | 2 + OsmAnd/res/values/strings.xml | 3 + OsmAnd/res/values/styles.xml | 4 + .../plus/activities/MapActivityActions.java | 56 ++-- .../activities/actions/ShareLocation.java | 104 ------- .../plus/mapcontextmenu/MapContextMenu.java | 3 +- .../MapContextMenuFragment.java | 19 +- .../details/MenuController.java | 4 +- .../editors/PointEditorFragment.java | 7 +- .../plus/mapcontextmenu/other/ShareMenu.java | 168 ++++++++++++ .../other/ShareMenuFragment.java | 132 +++++++++ 21 files changed, 801 insertions(+), 395 deletions(-) create mode 100644 OsmAnd/res/drawable/bg_bottom_menu_dark.xml create mode 100644 OsmAnd/res/drawable/bg_bottom_menu_light.xml create mode 100644 OsmAnd/res/drawable/bg_left_menu_dark.xml create mode 100644 OsmAnd/res/drawable/bg_left_menu_light.xml create mode 100644 OsmAnd/res/layout-land/point_editor_fragment.xml create mode 100644 OsmAnd/res/layout-land/share_menu_fragment.xml delete mode 100644 OsmAnd/res/layout/point_editor_fragment_land.xml create mode 100644 OsmAnd/res/layout/share_list_item.xml create mode 100644 OsmAnd/res/layout/share_menu_fragment.xml delete mode 100644 OsmAnd/src/net/osmand/plus/activities/actions/ShareLocation.java create mode 100644 OsmAnd/src/net/osmand/plus/mapcontextmenu/other/ShareMenu.java create mode 100644 OsmAnd/src/net/osmand/plus/mapcontextmenu/other/ShareMenuFragment.java diff --git a/OsmAnd/res/drawable/bg_bottom_menu_dark.xml b/OsmAnd/res/drawable/bg_bottom_menu_dark.xml new file mode 100644 index 0000000000..da3897aaf9 --- /dev/null +++ b/OsmAnd/res/drawable/bg_bottom_menu_dark.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_bottom_menu_light.xml b/OsmAnd/res/drawable/bg_bottom_menu_light.xml new file mode 100644 index 0000000000..14afe84331 --- /dev/null +++ b/OsmAnd/res/drawable/bg_bottom_menu_light.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_left_menu_dark.xml b/OsmAnd/res/drawable/bg_left_menu_dark.xml new file mode 100644 index 0000000000..6300bc82a3 --- /dev/null +++ b/OsmAnd/res/drawable/bg_left_menu_dark.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/bg_left_menu_light.xml b/OsmAnd/res/drawable/bg_left_menu_light.xml new file mode 100644 index 0000000000..9edc174531 --- /dev/null +++ b/OsmAnd/res/drawable/bg_left_menu_light.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout-land/point_editor_fragment.xml b/OsmAnd/res/layout-land/point_editor_fragment.xml new file mode 100644 index 0000000000..82eaecb526 --- /dev/null +++ b/OsmAnd/res/layout-land/point_editor_fragment.xml @@ -0,0 +1,256 @@ + + + + + + + + + + +