<How to correctly implement recyclerview allowing ...
# stackoverflow
u
How to correctly implement recyclerview allowing users to re-order items with ItemTouchHelper and ROOM I'm working on a list displaying all workout exercises. Users have the ability to re-order exercises for each individual workout. I managed to implement ItemTouchHelper with drag and swipe gestures but I struggle with storing the order in DB. Currently, I am storing position in exerciseAssignment entity, update position property for all elements in dataSet every time an item is moved and then run update query on DB to store custom order. This approach has multiple issues, the main one is...