Android Studio Delete Items From Recycler View And List
I am trying to remove a specific item when I click on it. I have run logs so I know that it's picking an item I just don't understand what the error means. If it is important I am
Solution 1:
Can you share your adapter code here? I had this problem in the past and it happens because you need to refresh your list contents inside your adapter (you are now only noticing it with .notifyItemRemoved(int index) ) but I realy need to see your adapter to help you about how to do it, in my situation an observer was the best way.
Solution 2:
I think you didn't initialize the adapter or the list.
Post a Comment for "Android Studio Delete Items From Recycler View And List"