From 8f8c4b08741029d49ebcc1388fd53f5bc006eff7 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 11 Mar 2015 20:19:24 +0100 Subject: [PATCH 01/23] Map update --- OsmAnd/res/drawable/btn_circle.xml | 13 ++ .../res/drawable/btn_circle_transparent.xml | 9 + OsmAnd/res/drawable/btn_flat.xml | 14 ++ OsmAnd/res/drawable/btn_inset_circle.xml | 16 ++ OsmAnd/res/drawable/btn_left_round.xml | 15 ++ OsmAnd/res/drawable/btn_right_round.xml | 18 ++ OsmAnd/res/drawable/btn_round.xml | 15 ++ OsmAnd/res/drawable/roundedbutton.xml | 11 -- OsmAnd/res/layout-land/dashboard_over_map.xml | 2 +- OsmAnd/res/layout/main.xml | 123 +++++++------ OsmAnd/res/layout/map_hud_bottom.xml | 127 ++++++++++++++ OsmAnd/res/layout/map_hud_top.xml | 162 ++++++++++++++++++ OsmAnd/res/layout/map_hud_widget.xml | 38 ++++ OsmAnd/res/layout/map_view_on_dashboard.xml | 3 +- OsmAnd/res/values/colors.xml | 4 + OsmAnd/res/values/sizes.xml | 14 +- .../osmand/plus/activities/MapActivity.java | 2 +- .../osmand/plus/dashboard/DashboardOnMap.java | 16 +- .../plus/helpers/WaypointDialogHelper.java | 2 +- .../osmand/plus/views/MapControlsLayer.java | 45 ++++- 20 files changed, 571 insertions(+), 78 deletions(-) create mode 100644 OsmAnd/res/drawable/btn_circle.xml create mode 100644 OsmAnd/res/drawable/btn_circle_transparent.xml create mode 100644 OsmAnd/res/drawable/btn_flat.xml create mode 100644 OsmAnd/res/drawable/btn_inset_circle.xml create mode 100644 OsmAnd/res/drawable/btn_left_round.xml create mode 100644 OsmAnd/res/drawable/btn_right_round.xml create mode 100644 OsmAnd/res/drawable/btn_round.xml delete mode 100644 OsmAnd/res/drawable/roundedbutton.xml create mode 100644 OsmAnd/res/layout/map_hud_bottom.xml create mode 100644 OsmAnd/res/layout/map_hud_top.xml create mode 100644 OsmAnd/res/layout/map_hud_widget.xml diff --git a/OsmAnd/res/drawable/btn_circle.xml b/OsmAnd/res/drawable/btn_circle.xml new file mode 100644 index 0000000000..2090295c75 --- /dev/null +++ b/OsmAnd/res/drawable/btn_circle.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_circle_transparent.xml b/OsmAnd/res/drawable/btn_circle_transparent.xml new file mode 100644 index 0000000000..7fccfc9f24 --- /dev/null +++ b/OsmAnd/res/drawable/btn_circle_transparent.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_flat.xml b/OsmAnd/res/drawable/btn_flat.xml new file mode 100644 index 0000000000..fa17c040e5 --- /dev/null +++ b/OsmAnd/res/drawable/btn_flat.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_inset_circle.xml b/OsmAnd/res/drawable/btn_inset_circle.xml new file mode 100644 index 0000000000..d08b764287 --- /dev/null +++ b/OsmAnd/res/drawable/btn_inset_circle.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_left_round.xml b/OsmAnd/res/drawable/btn_left_round.xml new file mode 100644 index 0000000000..be66a3477f --- /dev/null +++ b/OsmAnd/res/drawable/btn_left_round.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_right_round.xml b/OsmAnd/res/drawable/btn_right_round.xml new file mode 100644 index 0000000000..843840c380 --- /dev/null +++ b/OsmAnd/res/drawable/btn_right_round.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_round.xml b/OsmAnd/res/drawable/btn_round.xml new file mode 100644 index 0000000000..6b2158c0b7 --- /dev/null +++ b/OsmAnd/res/drawable/btn_round.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/roundedbutton.xml b/OsmAnd/res/drawable/roundedbutton.xml deleted file mode 100644 index 326556d040..0000000000 --- a/OsmAnd/res/drawable/roundedbutton.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/OsmAnd/res/layout-land/dashboard_over_map.xml b/OsmAnd/res/layout-land/dashboard_over_map.xml index 22329472c6..70ebe50980 100644 --- a/OsmAnd/res/layout-land/dashboard_over_map.xml +++ b/OsmAnd/res/layout-land/dashboard_over_map.xml @@ -48,7 +48,7 @@ diff --git a/OsmAnd/res/layout/main.xml b/OsmAnd/res/layout/main.xml index 73eaf225bb..cd90ad0af8 100644 --- a/OsmAnd/res/layout/main.xml +++ b/OsmAnd/res/layout/main.xml @@ -1,64 +1,81 @@ - + - + - + - + - + + + - + - + + + + + + + + + + + - - - - + \ No newline at end of file diff --git a/OsmAnd/res/layout/map_hud_bottom.xml b/OsmAnd/res/layout/map_hud_bottom.xml new file mode 100644 index 0000000000..f51ef81fbc --- /dev/null +++ b/OsmAnd/res/layout/map_hud_bottom.xml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/map_hud_top.xml b/OsmAnd/res/layout/map_hud_top.xml new file mode 100644 index 0000000000..44b6e44c68 --- /dev/null +++ b/OsmAnd/res/layout/map_hud_top.xml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/map_hud_widget.xml b/OsmAnd/res/layout/map_hud_widget.xml new file mode 100644 index 0000000000..143aeeff4b --- /dev/null +++ b/OsmAnd/res/layout/map_hud_widget.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/map_view_on_dashboard.xml b/OsmAnd/res/layout/map_view_on_dashboard.xml index bf041c1e3e..34bca26f36 100644 --- a/OsmAnd/res/layout/map_view_on_dashboard.xml +++ b/OsmAnd/res/layout/map_view_on_dashboard.xml @@ -10,7 +10,7 @@ android:layout_gravity="top|left" android:layout_marginLeft="@dimen/map_button_margin" android:layout_marginTop="@dimen/map_button_margin" - android:background="@drawable/roundedbutton" + android:background="@drawable/btn_inset_circle" android:src="@drawable/ic_action_layers_light" />