shouldApplySpacing

abstract fun shouldApplySpacing(viewHolder: RecyclerView.ViewHolder, itemCount: Int): Boolean

Return

true if the ViewHolder should have spacing applied to

Parameters

viewHolder

the ViewHolder currently in layout

itemCount

the item count at the layout stage. See RecyclerView.State.getItemCount