-
public interface FlexibleAdapter.OnActionStateListener
-
-
Method Summary
Modifier and Type Method Description abstract voidonActionStateChanged(RecyclerView.ViewHolder viewHolder, int actionState)Called when the ItemTouchHelper first registers an item as being movedor swiped or when has been released. -
-
Method Detail
-
onActionStateChanged
abstract void onActionStateChanged(RecyclerView.ViewHolder viewHolder, int actionState)
Called when the ItemTouchHelper first registers an item as being movedor swiped or when has been released.
Override this method to receive touch events with its state.
- Parameters:
viewHolder- the viewHolder touchedactionState- one of ACTION_STATE_SWIPE orACTION_STATE_DRAG orACTION_STATE_IDLE.
-
-
-
-