简体   繁体   中英

Drag and drop an item from one recyclerview (listview) into another recyclerview (listview)

I have a requirement that need to drag an item from one recyclerview into another recyclerview.

I found some some of the useful resource as with the help of ItemTouchHelper

Also find a library to drag and drop in android here .

While implementation, am able to drag the item view along with the pointer(finger) on the screen, but not able success to achieve my requirement.

Please share me if you have any previous experience on this.

For multiple list view drag and drop you can refer this https://github.com/woxblom/DragListView

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

Simple implementation of Drag and Drop in RecyclerView is given below

https://github.com/AleBarreto/DragRecyclerView

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM