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 outRect: Rect, itemPosition: Int, @NonNull parent: 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
open fun onDraw(@NonNull c: Canvas, @NonNull parent: RecyclerView)
open fun onDraw(@NonNull c: Canvas, @NonNull parent: RecyclerView, @NonNull state: RecyclerView.State)
Link copied to clipboard
Link copied to clipboard
fun setSpacingLookup(spacingLookup: DpadSpacingLookup?)