canDropOver
open fun canDropOver(@NonNull recyclerView: RecyclerView, @NonNull current: RecyclerView.ViewHolder, @NonNull target: RecyclerView.ViewHolder): Boolean(source)
Return true if the current ViewHolder can be dropped over the the target ViewHolder.
This method is used when selecting drop target for the dragged View. After Views are eliminated either via bounds check or via this method, resulting set of views will be passed to chooseDropTarget.
Default implementation returns true.
Return
True if the dragged ViewHolder can be replaced with the target ViewHolder, false otherwise.
Parameters
recyclerView
The RecyclerView to which ItemTouchHelper is attached to.
current
The ViewHolder that user is dragging.
target
The ViewHolder which is below the dragged ViewHolder.