Fix divider
This commit is contained in:
parent
82b0a08ff4
commit
f2492c4923
3 changed files with 8 additions and 0 deletions
|
@ -57,4 +57,8 @@ public class MapMarkerItemViewHolder extends RecyclerView.ViewHolder {
|
|||
leftPointSpace.setVisibility(visibility);
|
||||
rightPointSpace.setVisibility(visibility);
|
||||
}
|
||||
|
||||
public void setDividerVisibility(int visibility) {
|
||||
divider.setVisibility(visibility);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,8 +115,10 @@ public class MapMarkersActiveAdapter extends RecyclerView.Adapter<MapMarkerItemV
|
|||
}
|
||||
if (pos == getItemCount() - 1) {
|
||||
holder.setBottomShadowVisibility(View.VISIBLE);
|
||||
holder.setDividerVisibility(View.GONE);
|
||||
} else {
|
||||
holder.setBottomShadowVisibility(View.GONE);
|
||||
holder.setDividerVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
holder.iconReorder.setOnTouchListener(new View.OnTouchListener() {
|
||||
|
|
|
@ -136,8 +136,10 @@ public class MapMarkersHistoryAdapter extends RecyclerView.Adapter<RecyclerView.
|
|||
itemViewHolder.setPointSpaceVisibility(View.GONE);
|
||||
if (position == getItemCount() - 1) {
|
||||
((MapMarkerItemViewHolder) holder).setBottomShadowVisibility(View.VISIBLE);
|
||||
((MapMarkerItemViewHolder) holder).setDividerVisibility(View.GONE);
|
||||
} else {
|
||||
((MapMarkerItemViewHolder) holder).setBottomShadowVisibility(View.GONE);
|
||||
((MapMarkerItemViewHolder) holder).setDividerVisibility(View.VISIBLE);
|
||||
}
|
||||
} else if (holder instanceof MapMarkerDateViewHolder) {
|
||||
final MapMarkerDateViewHolder dateViewHolder = (MapMarkerDateViewHolder) holder;
|
||||
|
|
Loading…
Reference in a new issue