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