public final class ItemTouchCallback
extends ItemTouchHelper.Callback
Constructor and Description |
---|
ItemTouchCallback(MultiViewAdapter adapter) |
Modifier and Type | Method and Description |
---|---|
int |
getMovementFlags(RecyclerView recyclerView,
RecyclerView.ViewHolder viewHolder) |
boolean |
isItemViewSwipeEnabled() |
boolean |
isLongPressDragEnabled() |
boolean |
onMove(RecyclerView recyclerView,
RecyclerView.ViewHolder source,
RecyclerView.ViewHolder target) |
void |
onSwiped(RecyclerView.ViewHolder viewHolder,
int direction) |
public ItemTouchCallback(MultiViewAdapter adapter)
public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder)
public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder source, RecyclerView.ViewHolder target)
public boolean isLongPressDragEnabled()
public boolean isItemViewSwipeEnabled()
public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction)