Is it possible to have feature like drag and drop between two different RecyclerView
?
I found library for drag and drop within RecyclerView
. Please help me to improve this functionality.
Is it possible to have feature like drag and drop between two different RecyclerView
?
I found library for drag and drop within RecyclerView
. Please help me to improve this functionality.
I had a similar requirement in one of our projects. You can check out the sample code that I have uploaded here - RecyclerView Drag and Drop
It is a very basic code that matches your requirement - Drag and drop within a single recyclerview as well as between two different recyclerviews.
Hope this helps.
Check out my code sample on GitHub. It will help you understand how to Drag and Drop
between two RecyclerView
s.
I had a similar requirement in one of our projects. You can check out the sample code that I have uploaded here - RecyclerView Drag and Drop
It is a very basic code that matches your requirement - Drag and drop within a single recyclerview as well as between two different recyclerviews.
Hope this helps.
No need to use third party library's,Support library now supporting the drag and drop of recyleview, may be this article will help you
https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-6a6f0c422efd
This lib can help you. Check sample example, it does what you asked. It has a BoardView, where you can put several lists.
YouTube demo-video: https://youtu.be/tNgevYpyA9E?t=30
Features
Re-order items in a list, grid or board by dragging and dropping with nice animations.
Add custom animations when the drag is starting and ending.
Get a callback when a drag is started and ended with the position.
Disable and enable drag and drop
I had the same problem in one of my projects. I wanted the solution to be as easy to use as possible, so I prepared my own library.
If you're looking to implement drag and drop functionality across multiple RecyclerViews in your Android application, I highly recommend checking out the Unbound Drag & Drop library. Unlike the default behavior which restricts drag and drop actions to a single RecyclerView, this library allows seamless movement of items between different RecyclerViews, providing a more flexible and intuitive user experience.
© 2022 - 2025 — McMap. All rights reserved.