com.h6ah4i.android.widget.advrecyclerview.draggable.RecyclerViewDragDropManager.OnItemDragEventListener |
Used for listening item drag events
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onItemDragFinished(int fromPosition, int toPosition, boolean result)
Callback method to be invoked when dragging is finished.
| ||||||||||
abstract void |
onItemDragMoveDistanceUpdated(int offsetX, int offsetY)
Callback method to be invoked when the distance of currently dragging item is updated.
| ||||||||||
abstract void |
onItemDragPositionChanged(int fromPosition, int toPosition)
Callback method to be invoked when item position is changed during drag.
| ||||||||||
abstract void |
onItemDragStarted(int position)
Callback method to be invoked when dragging is started.
|
Callback method to be invoked when dragging is finished.
fromPosition | Previous position of the item. |
---|---|
toPosition | New position of the item. |
result | Indicates whether the dragging operation was succeeded. |
Callback method to be invoked when the distance of currently dragging item is updated.
offsetX | The horizontal distance of currently dragging item from the initial position in pixels. |
---|---|
offsetY | The vertical distance of currently dragging item from the initial position in pixels. |
Callback method to be invoked when item position is changed during drag.
fromPosition | The old position of the item. |
---|---|
toPosition | The new position of the item |
Callback method to be invoked when dragging is started.
position | The position of the item. |
---|