java.lang.Object | ||
↳ | android.support.v7.widget.RecyclerView.ItemDecoration | |
↳ | com.h6ah4i.android.widget.advrecyclerview.decoration.SimpleListDividerDecorator |
Item decoration which draws item divider between each items.
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
|
Constructor.
divider | horizontal divider drawable |
---|---|
overlap | whether the divider is drawn overlapped on bottom of the item. |
Constructor.
horizontalDivider | horizontal divider drawable |
---|---|
verticalDivider | vertical divider drawable |
overlap | whether the divider is drawn overlapped on bottom (or right) of the item. |