public class DefaultItemDecoration
extends RecyclerView.ItemDecoration
| Constructor and Description |
|---|
DefaultItemDecoration(int color) |
DefaultItemDecoration(int color,
int width,
int height,
int... excludeViewType) |
| Modifier and Type | Method and Description |
|---|---|
void |
getItemOffsets(android.graphics.Rect outRect,
android.view.View view,
RecyclerView parent,
RecyclerView.State state) |
void |
onDraw(android.graphics.Canvas canvas,
RecyclerView parent,
RecyclerView.State state) |
public DefaultItemDecoration(int color)
color - decoration line color.public DefaultItemDecoration(int color,
int width,
int height,
int... excludeViewType)
color - line color.width - line width.height - line height.excludeViewType - don't need to draw the ViewType of the item of the split line.