Drag and Drop between two RecyclerView

后端 未结 4 1605
我在风中等你
我在风中等你 2020-12-14 01:55

Is it possible to have feature like drag and drop between two different RecyclerView?

I found library for drag and drop within RecyclerView

相关标签:
4条回答
  • 2020-12-14 02:29

    Check out my code sample on GitHub. It will help you understand how to Drag and Drop between two RecyclerViews.

    0 讨论(0)
  • 2020-12-14 02:44

    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

    0 讨论(0)
  • 2020-12-14 02:51

    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.

    0 讨论(0)
  • 2020-12-14 02:53

    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

    0 讨论(0)
提交回复
热议问题