27

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.

Unheilig
  • 16,196
  • 193
  • 68
  • 98
ramji
  • 1,982
  • 2
  • 13
  • 13

4 Answers4

19

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

JuliaKo
  • 731
  • 1
  • 11
  • 19
15

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.

sanedroid
  • 1,036
  • 4
  • 16
  • 27
6

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

Libin Thomas
  • 1,132
  • 13
  • 17
3

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

Artur Dumchev
  • 1,252
  • 14
  • 17