From 88cb8fcea3c01e2190b1b2fb8fe87d13bc776757 Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Mon, 23 Apr 2018 12:39:48 +0300 Subject: [PATCH] Fix margins in wikivoyage search screen --- .../res/layout/fragment_wikivoyage_search_dialog.xml | 5 +---- OsmAnd/res/layout/wikivoyage_search_list_item.xml | 12 ++++++------ OsmAnd/res/values-large/sizes.xml | 3 +++ OsmAnd/res/values/sizes.xml | 5 ++++- .../search/WikivoyageSearchDialogFragment.java | 3 +++ 5 files changed, 17 insertions(+), 11 deletions(-) diff --git a/OsmAnd/res/layout/fragment_wikivoyage_search_dialog.xml b/OsmAnd/res/layout/fragment_wikivoyage_search_dialog.xml index deb610a3cf..d7a8cc9a85 100644 --- a/OsmAnd/res/layout/fragment_wikivoyage_search_dialog.xml +++ b/OsmAnd/res/layout/fragment_wikivoyage_search_dialog.xml @@ -1,7 +1,6 @@ + android:minHeight="@dimen/dashboard_map_toolbar"> diff --git a/OsmAnd/res/layout/wikivoyage_search_list_item.xml b/OsmAnd/res/layout/wikivoyage_search_list_item.xml index 6054c31bc4..2c50d1643a 100644 --- a/OsmAnd/res/layout/wikivoyage_search_list_item.xml +++ b/OsmAnd/res/layout/wikivoyage_search_list_item.xml @@ -17,16 +17,16 @@ android:layout_height="wrap_content" android:background="?attr/selectableItemBackground" android:minHeight="@dimen/bottom_sheet_selected_item_title_height" - android:paddingLeft="@dimen/content_padding" - android:paddingRight="@dimen/content_padding"> + android:paddingLeft="@dimen/wikivoyage_search_icon_margin_left" + android:paddingRight="@dimen/wikivoyage_search_icon_margin_left"> diff --git a/OsmAnd/res/values-large/sizes.xml b/OsmAnd/res/values-large/sizes.xml index 728434fef4..f5a70a767c 100644 --- a/OsmAnd/res/values-large/sizes.xml +++ b/OsmAnd/res/values-large/sizes.xml @@ -203,4 +203,7 @@ 23dp 48dp 54dp + 21dp + 33dp + 82dp \ No newline at end of file diff --git a/OsmAnd/res/values/sizes.xml b/OsmAnd/res/values/sizes.xml index 1d42b81c7a..8e64ef25e5 100644 --- a/OsmAnd/res/values/sizes.xml +++ b/OsmAnd/res/values/sizes.xml @@ -286,6 +286,9 @@ 15dp 32dp 36dp - + 14dp + 22dp + 64dp + 0.01 \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java b/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java index 3081fb0149..25a7266da4 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/search/WikivoyageSearchDialogFragment.java @@ -55,6 +55,9 @@ public class WikivoyageSearchDialogFragment extends WikivoyageBaseDialogFragment Toolbar toolbar = (Toolbar) mainView.findViewById(R.id.toolbar); setupToolbar(toolbar); + toolbar.setContentInsetStartWithNavigation( + getResources().getDimensionPixelOffset(R.dimen.wikivoyage_search_divider_margin_start) + ); searchEt = (EditText) toolbar.findViewById(R.id.searchEditText); searchEt.setHint(R.string.shared_string_search);