Home > Mobile > Android RecycleView Item drag and drop into another RecycleView
Android RecycleView Item drag and drop into another RecycleView
Time:11-21
A similar design, Demand is: At the bottom of the list is a data set, I can drag one, to the above list, the above recycleView recycleView nested list I'm going to use to do, My train of thought is recycleview should not cross domain drag and drop, I think after the drag and drop, assigned to a view on the current interface, and then determine whether the drag and drop the view point of coordinate in place area, the premise is placed object of this area is filled in advance, only id and picture I first set to 0; If a change in the current item model, refresh the item. Drag and drop out of that item, I don't remove, model modification field, there is this one, when the position of the mobile does not satisfy the place, before I move coordinate starting point, and then set the animation by the far point returns, modify the current item data refresh,
Consult the barons made similar to some other Suggestions, walk less detours,
CodePudding user response:
Your design is for imagination, demand
CodePudding user response:
Use between multiple RecyclerView setRecycledViewPool (RecycledViewPool) setting the same RecycledViewPool, they can share the Item,