Revert spaces in groups

This commit is contained in:
PavelRatushnyi 2017-09-21 08:41:43 +03:00
parent 67272ce744
commit 426dcdce85
3 changed files with 1 additions and 15 deletions

View file

@ -6,15 +6,7 @@
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">
<include android:id="@+id/top_shadow_divider"
layout="@layout/list_item_divider"/>
<View
android:id="@+id/top_divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:visibility="gone"
tools:visibility="visible"/>
<include layout="@layout/list_item_divider"/>
<LinearLayout
android:layout_width="match_parent"

View file

@ -10,8 +10,6 @@ import net.osmand.plus.R;
public class MapMarkerHeaderViewHolder extends RecyclerView.ViewHolder {
final View topShadowDivider;
final View topDivider;
final ImageView icon;
final View iconSpace;
final TextView title;
@ -19,8 +17,6 @@ public class MapMarkerHeaderViewHolder extends RecyclerView.ViewHolder {
public MapMarkerHeaderViewHolder(View itemView) {
super(itemView);
topShadowDivider = itemView.findViewById(R.id.top_shadow_divider);
topDivider = itemView.findViewById(R.id.top_divider);
icon = (ImageView) itemView.findViewById(R.id.icon);
iconSpace = itemView.findViewById(R.id.icon_space);
title = (TextView) itemView.findViewById(R.id.title);

View file

@ -308,8 +308,6 @@ public class MapMarkersGroupsAdapter extends RecyclerView.Adapter<RecyclerView.V
throw new IllegalArgumentException("Unsupported header");
}
headerViewHolder.title.setText(headerString);
headerViewHolder.topShadowDivider.setVisibility(View.GONE);
headerViewHolder.topDivider.setVisibility(View.VISIBLE);
} else if (holder instanceof MapMarkersShowHideHistoryViewHolder) {
final MapMarkersShowHideHistoryViewHolder showHideHistoryViewHolder = (MapMarkersShowHideHistoryViewHolder) holder;
final ShowHideHistoryButton showHideHistoryButton = (ShowHideHistoryButton) getItem(position);