Skip to content
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

Open
euitam opened this issue Jan 6, 2015 · 4 comments
Open

Support to drag on long press #10

euitam opened this issue Jan 6, 2015 · 4 comments

Comments

@euitam
Copy link

euitam commented Jan 6, 2015

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.

@emileb
Copy link
Owner

emileb commented Jan 10, 2015

OK sure, I'll take a look. I'll leave this open until done. Thanks

@mpost
Copy link

mpost commented Feb 22, 2015

I would also like to see long press support.

@danielgek
Copy link

@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 ?

@devgutt
Copy link

devgutt commented Jun 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants