diff --git a/OsmAnd/res/layout/fragment_map_markers_dialog.xml b/OsmAnd/res/layout/fragment_map_markers_dialog.xml index 4ba818c724..348e68e1bb 100644 --- a/OsmAnd/res/layout/fragment_map_markers_dialog.xml +++ b/OsmAnd/res/layout/fragment_map_markers_dialog.xml @@ -7,50 +7,56 @@ android:layout_height="match_parent" android:orientation="vertical"> - - - - - - - - - - + android:layout_weight="1"> - - + android:layout_height="match_parent" + android:orientation="vertical"> - - + android:layout_height="@dimen/dashboard_map_toolbar" + android:background="?attr/actionModeBackground"> + + + + + + + + + + + + + + + - + diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java index f7846adda3..a9da2cdf5d 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/OptionsBottomSheetDialogFragment.java @@ -180,7 +180,8 @@ public class OptionsBottomSheetDialogFragment extends BottomSheetDialogFragment int scrH = AndroidUtils.getScreenHeight(activity); int stBarH = AndroidUtils.getStatusBarHeight(activity); int nBarH = AndroidUtils.getNavBarHeight(activity); - return scrH - stBarH - nBarH - getResources().getDimensionPixelSize(R.dimen.dashboard_map_toolbar) - AndroidUtils.dpToPx(activity, 56); + // 56dp below is height of the bottom navigation view + return scrH - stBarH - nBarH - AndroidUtils.dpToPx(activity, 56); } interface MarkerOptionsFragmentListener {