From d212fc24d384751d5892d269c3ea88f2003c9b8f Mon Sep 17 00:00:00 2001 From: PavelRatushnyi Date: Wed, 20 Sep 2017 13:13:20 +0300 Subject: [PATCH] Fix ui for groups --- OsmAnd/res/layout/map_marker_item_header.xml | 10 +++++++++- .../adapters/MapMarkerHeaderViewHolder.java | 4 ++++ .../adapters/MapMarkersGroupsAdapter.java | 17 ++++++++++------- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/OsmAnd/res/layout/map_marker_item_header.xml b/OsmAnd/res/layout/map_marker_item_header.xml index 86463f5c64..c3ac494423 100644 --- a/OsmAnd/res/layout/map_marker_item_header.xml +++ b/OsmAnd/res/layout/map_marker_item_header.xml @@ -6,7 +6,15 @@ android:layout_height="wrap_content" android:descendantFocusability="blocksDescendants"> - + + + position + 1 && getItemViewType(position + 1) == HEADER_TYPE) || lastItem) { itemViewHolder.divider.setVisibility(View.GONE); } else { - itemViewHolder.bottomShadow.setVisibility(View.GONE); itemViewHolder.divider.setVisibility(View.VISIBLE); } + itemViewHolder.bottomShadow.setVisibility(lastItem ? View.VISIBLE : View.GONE); LatLon markerLatLon = new LatLon(marker.getLatitude(), marker.getLongitude()); DashLocationFragment.updateLocationView(useCenter, location, @@ -346,6 +346,8 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter