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
Properties
Functions
Link copied to clipboard
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
open fun onDrawOver(@NonNull p0: Canvas, @NonNull p1: RecyclerView, @NonNull p2: RecyclerView.State)
Link copied to clipboard