Deleting Card From Recyclerview And Re-add It Again
I'm struggling to implement the funtionality to delete an entry of a recyclerview and re-add it again, if the user decided otherwise. For that I'm showing a Snackbar with an undo a
Solution 1:
This might be because of recycling. The adapter position of the removed card, currently points to nothing. You should keep the position out of the scope of the onBindViewHolder and use that one to re-add it.
Post a Comment for "Deleting Card From Recyclerview And Re-add It Again"