-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support to drag on long press #10
Comments
OK sure, I'll take a look. I'll leave this open until done. Thanks |
I would also like to see long press support. |
@emileb any plans on this ?? i have tried to implement long press with GestorDetector but unfortunately, i didn't have a good result because long press is never detected, any tip from you ? |
If anyone (like me) was looking for a solution in this issue, I ended up using a hack. I start the RecyclerView with DragSortRecycler.setLeftDragArea(0), and then, the long press just set this value to the view's width, enabling the drag. When the drag is completed, I set the value to zero again. |
At the moment, you are only allowed to drag items with a handler. A common and useful design pattern is also to be able to drag and drop items on long press on the item. Could it be possible to add this feature to your lib ? Thanks.
The text was updated successfully, but these errors were encountered: