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

Link copied to clipboard
constructor(@Px itemSpacing: Int, @Px minEdgeSpacing: Int, @Px maxEdgeSpacing: Int, @Px perpendicularEdgeSpacing: 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?)