onDragReleased

abstract fun onDragReleased(model: T, itemView: View)

Called after onDragStarted when the view being dragged isreleased. If the view was dragged to a new, valid location then onModelMoved will be called before this and the view will settle to the new location.Otherwise the view will animate back to its original position.

You can use this callback to modify the view as it animates back into position.

clearView will be called after this, when theview has finished animating. Final cleanup of the view should be done there.

Parameters

model

The model representing the view that is being released

itemView

The view that was being dragged