public static interface ItemSwipeHelper.SwipeViewHolder extends RecyclerViewItemHelper.InteractiveViewHolder
ViewHolders which want to support
swipe feature for theirs corresponding item views.| Modifier and Type | Method and Description |
|---|---|
void |
onSwipeCanceled()
Called by the swipe helper whenever swipe gesture for view of this holder is canceled.
|
void |
onSwipeFinished(int direction)
Called by the swipe helper whenever swipe gesture for view of this holder is finished in
the specified direction.
|
void |
onSwipeStarted()
Called by the swipe helper whenever swipe gesture for view of this holder is started.
|
getInteractiveView, onDraw, onDrawOvervoid onSwipeStarted()
onSwipeFinished(int),
onSwipeCanceled(),
ItemSwipeHelper.Callback#onSelectedChanged(RecyclerView.ViewHolder, int)void onSwipeFinished(int direction)
direction - The direction in which has the swipe gestured finished. One of directions
defined by @Direction annotation.onSwipeStarted(),
ItemSwipeHelper.Callback#onSwiped(RecyclerView.ViewHolder, int)void onSwipeCanceled()
onSwipeStarted(),
ItemSwipeHelper.Callback#clearView(RecyclerView, RecyclerView.ViewHolder)