So I have a to-do list, just the typical checkbox, and textview recycler view list. I want recycler view to remember the check state of all the checkbox in the list and when click Submit button, the list of checkstate of all checkbox in the list will be updated to a room database, but I've not been able to find a way.
These are some of the points I have found about the problem:
- recycler view should not reference database (dao- viewmodel_
- you can update in the onbindviewholder in adapter (though I don't understand how)
Thanks you.