DpadLinearSpacingDecoration
data class DpadLinearSpacingDecoration(@Px val itemSpacing: Int, @Px val minEdgeSpacing: Int, @Px val maxEdgeSpacing: Int, @Px val perpendicularEdgeSpacing: Int) : DpadSpacingDecoration
An item decoration that applies a spacing to all sides of a view part of a Column or Row layout.
Parameters
itemSpacing
spacing between items in the layout direction
minEdgeSpacing
spacing between the start edge and the first item. Default is itemSpacing if not specified.
maxEdgeSpacing
spacing between the last item and the end edge Default is itemSpacing if not specified.
perpendicularEdgeSpacing
spacing between the edges perpendicular to the layout orientation. Default is 0.
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