setDividerAllowedBelow

Dividers are only drawn between items if both items allow it, or above the first and below the last item if that item allows it. By default, onBindViewHolder will set this to the same value as returned by isSelectable, so that non-selectable items do not have a divider drawn below them.

Parameters

allowed

False to prevent dividers being drawn below this item