public class DecorationDelegate
extends RecyclerView.ItemDecoration
RecyclerView.ItemDecoration
for different ItemBinder
. It will delegate the RecyclerView.ItemDecoration
Constructor and Description |
---|
DecorationDelegate(MultiViewAdapter adapter) |
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) |
void |
onDrawOver(android.graphics.Canvas canvas,
RecyclerView parent,
RecyclerView.State state) |
public DecorationDelegate(MultiViewAdapter adapter)
public void onDraw(android.graphics.Canvas canvas, RecyclerView parent, RecyclerView.State state)
public void onDrawOver(android.graphics.Canvas canvas, RecyclerView parent, RecyclerView.State state)
public void getItemOffsets(android.graphics.Rect outRect, android.view.View view, RecyclerView parent, RecyclerView.State state)