public class RVHItemDividerDecoration
extends RecyclerView.ItemDecoration
| Modifier and Type | Field and Description |
|---|---|
static int |
HORIZONTAL_LIST
The constant HORIZONTAL_LIST.
|
static int |
VERTICAL_LIST
The constant VERTICAL_LIST.
|
| Constructor and Description |
|---|
RVHItemDividerDecoration(android.content.Context context,
int orientation)
Instantiates a new Rvh item divider decoration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getItemOffsets(android.graphics.Rect outRect,
int itemPosition,
RecyclerView parent) |
void |
onDraw(android.graphics.Canvas c,
RecyclerView parent) |
void |
setOrientation(int orientation)
Sets orientation.
|
public static final int HORIZONTAL_LIST
public static final int VERTICAL_LIST
public RVHItemDividerDecoration(android.content.Context context,
int orientation)
context - the contextorientation - the orientationpublic void setOrientation(int orientation)
orientation - the orientationpublic void onDraw(android.graphics.Canvas c,
RecyclerView parent)
public void getItemOffsets(android.graphics.Rect outRect,
int itemPosition,
RecyclerView parent)