diff --git a/android/res/drawable/list_divider.xml b/android/res/drawable/list_divider.xml index d2415982e5..efb10841ab 100644 --- a/android/res/drawable/list_divider.xml +++ b/android/res/drawable/list_divider.xml @@ -1,5 +1,5 @@ - - + + diff --git a/android/res/drawable/list_divider_night.xml b/android/res/drawable/list_divider_night.xml new file mode 100644 index 0000000000..56b8be72d3 --- /dev/null +++ b/android/res/drawable/list_divider_night.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/android/res/values/dimens.xml b/android/res/values/dimens.xml index d164c461c3..41a88b4893 100644 --- a/android/res/values/dimens.xml +++ b/android/res/values/dimens.xml @@ -231,6 +231,7 @@ 40dp 1dp + 1dp 40dp diff --git a/android/res/values/themes-base.xml b/android/res/values/themes-base.xml index 5f9b2ca044..54f90d5354 100644 --- a/android/res/values/themes-base.xml +++ b/android/res/values/themes-base.xml @@ -229,6 +229,8 @@ @drawable/bg_rating_button_night + @drawable/list_divider_night + @drawable/abc_ic_ab_back_mtrl_am_alpha diff --git a/android/src/com/mapswithme/maps/bookmarks/BookmarkCategoriesFragment.java b/android/src/com/mapswithme/maps/bookmarks/BookmarkCategoriesFragment.java index ad915323e4..3085c501ac 100644 --- a/android/src/com/mapswithme/maps/bookmarks/BookmarkCategoriesFragment.java +++ b/android/src/com/mapswithme/maps/bookmarks/BookmarkCategoriesFragment.java @@ -18,6 +18,7 @@ import com.mapswithme.maps.bookmarks.data.BookmarkBackupController; import com.mapswithme.maps.bookmarks.data.BookmarkManager; import com.mapswithme.maps.dialog.EditTextDialogFragment; import com.mapswithme.maps.widget.PlaceholderView; +import com.mapswithme.maps.widget.recycler.ItemDecoratorFactory; import com.mapswithme.maps.widget.recycler.RecyclerClickListener; import com.mapswithme.maps.widget.recycler.RecyclerLongClickListener; import com.mapswithme.util.BottomSheetHelper; @@ -84,6 +85,7 @@ public class BookmarkCategoriesFragment extends BaseMwmRecyclerFragment } getRecyclerView().setNestedScrollingEnabled(false); + getRecyclerView().addItemDecoration(ItemDecoratorFactory.createVerticalDefaultDecorator(getContext())); } private void updateResultsPlaceholder() diff --git a/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java b/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java index 62a9e80c42..44aeb35c24 100644 --- a/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java +++ b/android/src/com/mapswithme/maps/widget/recycler/ItemDecoratorFactory.java @@ -43,4 +43,10 @@ public class ItemDecoratorFactory { return new DividerItemDecoration(context, orientation); } + + @NonNull + public static RecyclerView.ItemDecoration createVerticalDefaultDecorator(@NonNull Context context) + { + return new DividerItemDecoration(context, DividerItemDecoration.VERTICAL); + } }