From 08bd2a8546e35489c4023b4460334fe48011bf9f Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Tue, 7 Jul 2020 13:51:17 +0300 Subject: [PATCH 01/81] Material theme --- .../add_gpx_point_bottom_sheet.xml | 10 +-- OsmAnd/res/layout-land/map_hud_bottom.xml | 1 - .../layout-land/move_marker_bottom_sheet.xml | 17 ++-- .../res/layout/add_gpx_point_bottom_sheet.xml | 34 ++++---- OsmAnd/res/layout/adjust_speed_slider.xml | 1 - OsmAnd/res/layout/animate_route.xml | 15 ++-- ...bottom_sheet_item_slider_with_two_text.xml | 1 - OsmAnd/res/layout/download_tiles.xml | 41 +++++----- .../layout/favorite_category_dialog_item.xml | 1 + OsmAnd/res/layout/fragment_edit_poi.xml | 5 +- OsmAnd/res/layout/fragment_terrain.xml | 2 - OsmAnd/res/layout/list_item_progress.xml | 3 +- OsmAnd/res/layout/map_hud_bottom.xml | 1 - .../res/layout/move_marker_bottom_sheet.xml | 39 +++++---- OsmAnd/res/layout/poi_tag_list_item.xml | 20 +++-- .../layout/quick_action_add_poi_layout.xml | 35 ++++---- .../res/layout/recalculation_angle_dialog.xml | 1 - OsmAnd/res/layout/search_dialog_fragment.xml | 2 +- OsmAnd/res/layout/slider.xml | 1 - OsmAnd/res/layout/zoom_levels_with_descr.xml | 1 - OsmAnd/res/values/styles.xml | 82 ++++--------------- OsmAnd/src/net/osmand/plus/UiUtilities.java | 8 -- .../plus/activities/PluginsActivity.java | 4 +- .../editors/PointEditorFragmentNew.java | 2 +- .../EditMapSourceDialogFragment.java | 5 +- .../plus/mapsource/ExpireTimeBottomSheet.java | 2 +- .../mapsource/InputZoomLevelsBottomSheet.java | 3 +- .../plus/osmedit/AdvancedEditPoiFragment.java | 18 ++-- .../VehicleParametersBottomSheet.java | 2 +- 29 files changed, 149 insertions(+), 208 deletions(-) diff --git a/OsmAnd/res/layout-land/add_gpx_point_bottom_sheet.xml b/OsmAnd/res/layout-land/add_gpx_point_bottom_sheet.xml index a6c60491b9..1494750470 100644 --- a/OsmAnd/res/layout-land/add_gpx_point_bottom_sheet.xml +++ b/OsmAnd/res/layout-land/add_gpx_point_bottom_sheet.xml @@ -34,8 +34,8 @@ android:layout_marginRight="@dimen/content_padding" android:layout_marginTop="@dimen/content_padding" android:text="@string/waypoint_one" - android:layout_marginEnd="@dimen/content_padding" - android:layout_marginStart="@dimen/content_padding" /> + android:layout_marginEnd="@dimen/content_padding" + android:layout_marginStart="@dimen/content_padding" /> + android:layout_marginEnd="@dimen/content_padding" + android:layout_marginStart="@dimen/content_padding" /> @@ -68,5 +68,5 @@ android:layout_marginRight="@dimen/content_padding" android:layout_gravity="center_vertical" android:text="@string/shared_string_cancel" - android:layout_marginEnd="@dimen/content_padding" /> + android:layout_marginEnd="@dimen/content_padding" /> \ No newline at end of file diff --git a/OsmAnd/res/layout-land/map_hud_bottom.xml b/OsmAnd/res/layout-land/map_hud_bottom.xml index e2c6d8556f..6c193cf259 100644 --- a/OsmAnd/res/layout-land/map_hud_bottom.xml +++ b/OsmAnd/res/layout-land/map_hud_bottom.xml @@ -185,7 +185,6 @@ diff --git a/OsmAnd/res/layout-land/move_marker_bottom_sheet.xml b/OsmAnd/res/layout-land/move_marker_bottom_sheet.xml index b18b98d707..df3b13689c 100644 --- a/OsmAnd/res/layout-land/move_marker_bottom_sheet.xml +++ b/OsmAnd/res/layout-land/move_marker_bottom_sheet.xml @@ -1,6 +1,5 @@ - + osmand:srcCompat="@drawable/ic_action_photo_dark" /> + android:layout_marginStart="@dimen/content_padding" + android:layout_marginEnd="@dimen/content_padding" /> + android:layout_marginStart="@dimen/content_padding" + android:layout_marginEnd="@dimen/content_padding" /> @@ -57,7 +56,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_vertical" - android:text="@string/shared_string_apply"/> + android:text="@string/shared_string_apply" /> + android:layout_marginEnd="@dimen/content_padding" /> \ No newline at end of file diff --git a/OsmAnd/res/layout/add_gpx_point_bottom_sheet.xml b/OsmAnd/res/layout/add_gpx_point_bottom_sheet.xml index 1325fab41c..f8b2389831 100644 --- a/OsmAnd/res/layout/add_gpx_point_bottom_sheet.xml +++ b/OsmAnd/res/layout/add_gpx_point_bottom_sheet.xml @@ -33,8 +33,8 @@ android:layout_marginRight="@dimen/content_padding" android:layout_marginTop="@dimen/content_padding" tools:text="@string/waypoint_one" - android:layout_marginEnd="@dimen/content_padding" - android:layout_marginStart="@dimen/content_padding" /> + android:layout_marginEnd="@dimen/content_padding" + android:layout_marginStart="@dimen/content_padding" /> + android:layout_marginEnd="@dimen/content_padding" + android:layout_marginStart="@dimen/content_padding" /> + android:layout_marginStart="@dimen/content_padding_small" + android:layout_marginEnd="@dimen/content_padding_small"> -