MarginItemDecoration

class MarginItemDecoration(margin: Int)

ItemDecoration that applies a specified margin to the items. Use this instead of manually adding a margin to the item's layout.

Parameters

margin

Int value for the desired margin used as item offset

Constructors

Link copied to clipboard
fun MarginItemDecoration(margin: Int)

Functions

Link copied to clipboard
open fun getItemOffsets(outRect: <ERROR CLASS>, view: <ERROR CLASS>, parent: <ERROR CLASS>, state: <ERROR CLASS>)