iPaulPro / Android-ItemTouchHelper-Demo

Basic example of using ItemTouchHelper to add drag & drop and swipe-to-dismiss to RecyclerView.
Apache License 2.0
2.51k stars 499 forks source link

Issue with getMoveThreshold() #42

Open apuder opened 8 years ago

apuder commented 8 years ago

I've noticed that you have to drag an item almost exactly on top of a neighboring item before it will start the swap animation. There is a method called getMoveThreshold() that by default returns 0.5 which seems to suggest that you need to drag just half of the item's size before the swap animation kicks in. I tried returning lower thresholds in getMoveThreshold() but that has no effect.

helloworldyx commented 7 years ago

Me too.Is it our understanding wrong?

feresr commented 6 years ago

Same here, but this is not specific to this demo, it's an android method (badly named IMHO)

vadiole commented 3 years ago

Hey. I also ran into this problem, it looks like this method cannot reduce the required swap distance. Did you manage to somehow solve the problem?