ItemSpacingDecoration

public class ItemSpacingDecoration extends ItemDecoration

Item decoration that adds spacing around RecyclerView items.

Public Constructor Summary

ItemSpacingDecoration(RecyclerView.Adapter adapter)

Public Method Summary

void
getItemOffsets(Rect outRect, View child, RecyclerView parent, RecyclerView.State state)

Inherited Method Summary

Public Constructors

public ItemSpacingDecoration (RecyclerView.Adapter adapter)

Parameters
adapter

Public Methods

public void getItemOffsets (Rect outRect, View child, RecyclerView parent, RecyclerView.State state)

Parameters
outRect
child
parent
state