prepareForDrop

open fun prepareForDrop(@NonNull view: View, @NonNull target: View, x: Int, y: Int)(source)

Called by the after a View is dropped over another View.

A LayoutManager should implement this interface to get ready for the upcoming move operation.

For example, LinearLayoutManager sets up a "scrollToPositionWithOffset" calls so that the View under drag will be used as an anchor View while calculating the next layout, making layout stay consistent.