I want to implement dragging the cards in such a way that the rearrangement of the cards starts when the card that I am dragging does not completely overlap the element, but only 50%.
Check out an example:

Now, for the right card to move to the left, I need to completely overlap it with the one I am dragging.
I tried overriding this method from ItemTouchHelper.Callback:
public float getMoveThreshold(@NonNull ViewHolder viewHolder) {
return .5f;
}
But it didn't help.
So how can I make the swap happen at 50% and not at 100% overlap?
