From 4cea208b95f47b68f9ed5b3f562abf477822fda0 Mon Sep 17 00:00:00 2001 From: crimean Date: Sat, 30 Mar 2019 17:49:47 +0300 Subject: [PATCH] Added pages control to route details --- OsmAnd/res/drawable/pages_active_dark.xml | 8 ++ OsmAnd/res/drawable/pages_active_light.xml | 8 ++ OsmAnd/res/drawable/pages_bg_dark.xml | 12 +++ OsmAnd/res/drawable/pages_bg_light.xml | 12 +++ OsmAnd/res/drawable/pages_inactive_dark.xml | 8 ++ OsmAnd/res/drawable/pages_inactive_light.xml | 8 ++ .../res/layout/fragment_show_all_routes.xml | 29 ++++++- OsmAnd/res/values/attrs.xml | 1 + OsmAnd/res/values/colors.xml | 2 + OsmAnd/res/values/sizes.xml | 5 ++ OsmAnd/res/values/styles.xml | 2 + .../osmand/plus/base/ContextMenuFragment.java | 2 +- .../ChooseRouteFragment.java | 87 ++++++++++++++++++- 13 files changed, 178 insertions(+), 6 deletions(-) create mode 100644 OsmAnd/res/drawable/pages_active_dark.xml create mode 100644 OsmAnd/res/drawable/pages_active_light.xml create mode 100644 OsmAnd/res/drawable/pages_bg_dark.xml create mode 100644 OsmAnd/res/drawable/pages_bg_light.xml create mode 100644 OsmAnd/res/drawable/pages_inactive_dark.xml create mode 100644 OsmAnd/res/drawable/pages_inactive_light.xml diff --git a/OsmAnd/res/drawable/pages_active_dark.xml b/OsmAnd/res/drawable/pages_active_dark.xml new file mode 100644 index 0000000000..bf2fed66ca --- /dev/null +++ b/OsmAnd/res/drawable/pages_active_dark.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/OsmAnd/res/drawable/pages_active_light.xml b/OsmAnd/res/drawable/pages_active_light.xml new file mode 100644 index 0000000000..ea344ee8e6 --- /dev/null +++ b/OsmAnd/res/drawable/pages_active_light.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/OsmAnd/res/drawable/pages_bg_dark.xml b/OsmAnd/res/drawable/pages_bg_dark.xml new file mode 100644 index 0000000000..7e375c7935 --- /dev/null +++ b/OsmAnd/res/drawable/pages_bg_dark.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/OsmAnd/res/drawable/pages_bg_light.xml b/OsmAnd/res/drawable/pages_bg_light.xml new file mode 100644 index 0000000000..3f19437a56 --- /dev/null +++ b/OsmAnd/res/drawable/pages_bg_light.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/OsmAnd/res/drawable/pages_inactive_dark.xml b/OsmAnd/res/drawable/pages_inactive_dark.xml new file mode 100644 index 0000000000..7e245586aa --- /dev/null +++ b/OsmAnd/res/drawable/pages_inactive_dark.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/OsmAnd/res/drawable/pages_inactive_light.xml b/OsmAnd/res/drawable/pages_inactive_light.xml new file mode 100644 index 0000000000..ae48128584 --- /dev/null +++ b/OsmAnd/res/drawable/pages_inactive_light.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/OsmAnd/res/layout/fragment_show_all_routes.xml b/OsmAnd/res/layout/fragment_show_all_routes.xml index 4e22b7cda9..b32b6e6b73 100644 --- a/OsmAnd/res/layout/fragment_show_all_routes.xml +++ b/OsmAnd/res/layout/fragment_show_all_routes.xml @@ -35,11 +35,11 @@ android:id="@+id/back_button_flow" android:layout_width="@dimen/route_info_toolbar_button_size" android:layout_height="@dimen/route_info_toolbar_button_size" + android:layout_marginLeft="8dp" + android:layout_marginTop="8dp" android:background="@drawable/btn_circle_transparent_full" android:contentDescription="@string/shared_string_back" android:src="@drawable/ic_arrow_back" - android:layout_marginTop="8dp" - android:layout_marginLeft="8dp" android:tint="?attr/primary_icon_color" /> + + + + + + + + + + diff --git a/OsmAnd/res/values/colors.xml b/OsmAnd/res/values/colors.xml index c45e679134..78a0d37c34 100644 --- a/OsmAnd/res/values/colors.xml +++ b/OsmAnd/res/values/colors.xml @@ -473,6 +473,8 @@ #b3b3b3 #237bff #d28521 + #cccccc + #505050 #66237bff #66d28521 diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml index 3a6be2934d..3a2b3910e6 100644 --- a/OsmAnd/res/values/sizes.xml +++ b/OsmAnd/res/values/sizes.xml @@ -331,4 +331,9 @@ 0.01 1.2 + + 4dp + 3dp + 4dp + \ No newline at end of file diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index e586ea2772..9e379e9ee5 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -245,6 +245,7 @@ @color/active_buttons_and_links_light @color/card_and_list_background_light @color/activity_background_light + @drawable/pages_bg_light