public interface OnItemSwipeListener
| Modifier and Type | Method and Description |
|---|---|
void |
clearView(RecyclerView.ViewHolder viewHolder,
int pos)
Called when the swipe action is over.
|
void |
onItemSwiped(RecyclerView.ViewHolder viewHolder,
int pos)
Called when item is swiped, the view is going to be removed from the adapter.
|
void |
onItemSwipeMoving(android.graphics.Canvas canvas,
RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
boolean isCurrentlyActive)
Draw on the empty edge when swipe moving
|
void |
onItemSwipeStart(RecyclerView.ViewHolder viewHolder,
int pos)
Called when the swipe action start.
|
void onItemSwipeStart(RecyclerView.ViewHolder viewHolder,
int pos)
void clearView(RecyclerView.ViewHolder viewHolder,
int pos)
pos - If the view is swiped, pos will be negative.void onItemSwiped(RecyclerView.ViewHolder viewHolder,
int pos)
void onItemSwipeMoving(android.graphics.Canvas canvas,
RecyclerView.ViewHolder viewHolder,
float dX,
float dY,
boolean isCurrentlyActive)
canvas - the empty edge's canvasviewHolder - The ViewHolder which is being interacted by the User or it was
interacted and simply animating to its original positiondX - The amount of horizontal displacement caused by user's actiondY - The amount of vertical displacement caused by user's actionisCurrentlyActive - True if this view is currently being controlled by the user or
false it is simply animating back to its original state.