The task is to implement the recyclerview folder and list. Each item in the list should be able to drag and drop into the folder. Can this be implemented in one recyclerview or for example use 2 recyclerview? If two then how to drag from one recyclerview to the second.
1 answer
Here is a great example of how to use Drag-and-Drop with the ItemTouchHelper. Yes, whatever you want and use, it all depends on how much power you are willing to invest. The main thing - think over the logic and method of displaying elements. If there is one RecycleView, then all the logic will be inside one adapter (read how the elements are displayed). If there are two RecycleViews, then it’s more difficult, through the ItemTouchHelper interface you will have to update two adapters.
|