public interface ItemTouchHelperViewHolder
androidx.recyclerview.widget.ItemTouchHelper.Callback.| 限定符和类型 | 方法和说明 |
|---|---|
void |
onItemClear()
Called when the
ItemTouchHelper has completed the move or swipe, and the active item
state should be cleared. |
void |
onItemSelected()
Called when the
ItemTouchHelper first registers an item as being moved or swiped. |
void onItemSelected()
ItemTouchHelper first registers an item as being moved or swiped.
Implementations should update the item view to indicate it's active state.void onItemClear()
ItemTouchHelper has completed the move or swipe, and the active item
state should be cleared.