DpadGridSpacingDecoration

data class DpadGridSpacingDecoration(@Px val itemSpacing: Int, @Px val minEdgeSpacing: Int, @Px val maxEdgeSpacing: Int, @Px val perpendicularItemSpacing: Int) : DpadSpacingDecoration

An item decoration that applies a spacing to all sides of a view part of a grid.

Parameters

itemSpacing

default spacing between items that share a span group.

minEdgeSpacing

spacing between the start edge and the first row. Default is itemSpacing if not specified.

maxEdgeSpacing

spacing between the last row and the end edge Default is itemSpacing if not specified.

perpendicularItemSpacing

spacing between items across different span groups. Default is itemSpacing if not specified.

Constructors

Link copied to clipboard
constructor(@Px itemSpacing: Int, @Px minEdgeSpacing: Int, @Px maxEdgeSpacing: Int, @Px perpendicularItemSpacing: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

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