public interface OnItemStateChangedListener
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTION_STATE_DRAG
A View is currently being dragged.
|
static int |
ACTION_STATE_IDLE
ItemTouchHelper is in idle state.
|
static int |
ACTION_STATE_SWIPE
A View is currently being swiped.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onSelectedChanged(RecyclerView.ViewHolder viewHolder,
int actionState)
Called when the ViewHolder swiped or dragged by the ItemTouchHelper is changed.
|
static final int ACTION_STATE_IDLE
static final int ACTION_STATE_SWIPE
static final int ACTION_STATE_DRAG
void onSelectedChanged(RecyclerView.ViewHolder viewHolder,
int actionState)
viewHolder - The new ViewHolder that is being swiped or dragged. Might be null if it is cleared.actionState - One of ACTION_STATE_IDLE,
ACTION_STATE_SWIPE or
ACTION_STATE_DRAG.