DpadSpacingDecoration

A base RecyclerView.ItemDecoration that checks if spacing should be applied for a given position using DpadSpacingLookup.

Subclasses should only be used for instances of DpadRecyclerView and not other RecyclerViews.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getItemOffsets(@NonNull p0: Rect, p1: Int, @NonNull p2: RecyclerView)
override fun getItemOffsets(outRect: Rect, view: View, parent: RecyclerView, state: RecyclerView.State)
abstract fun getItemOffsets(outRect: Rect, view: View, layoutPosition: Int, parent: DpadRecyclerView, state: RecyclerView.State)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setSpacingLookup(spacingLookup: DpadSpacingLookup?)