public class

SimpleListDividerDecorator

extends RecyclerView.ItemDecoration
java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.ItemDecoration
     ↳ com.h6ah4i.android.widget.advrecyclerview.decoration.SimpleListDividerDecorator

Class Overview

Item decoration which draws item divider between each items.

Summary

Public Constructors
SimpleListDividerDecorator(Drawable divider, boolean overlap)
Constructor.
SimpleListDividerDecorator(Drawable horizontalDivider, Drawable verticalDivider, boolean overlap)
Constructor.
Public Methods
void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state)
void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state)
[Expand]
Inherited Methods
From class android.support.v7.widget.RecyclerView.ItemDecoration
From class java.lang.Object

Public Constructors

public SimpleListDividerDecorator (Drawable divider, boolean overlap)

Constructor.

Parameters
divider horizontal divider drawable
overlap whether the divider is drawn overlapped on bottom of the item.

public SimpleListDividerDecorator (Drawable horizontalDivider, Drawable verticalDivider, boolean overlap)

Constructor.

Parameters
horizontalDivider horizontal divider drawable
verticalDivider vertical divider drawable
overlap whether the divider is drawn overlapped on bottom (or right) of the item.

Public Methods

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

public void onDrawOver (Canvas c, RecyclerView parent, RecyclerView.State state)