Closed arvalon closed 7 years ago
I have the same problem while I want to update my data in Sections i have added.
Hi, please have a look on the code of examples 3, 4, 6 and 7, they are all successfully refreshing the list with notifyDataSetChanged.
If the examples don't help: @Arvalon I'm happy to help you in your thread in Stack Overflow, please paste your code there. @MarStarck please open a question in Stack Overflow with your code and I'm also happy to help.
What I understand from the examples you pointed out above is that one can easily call the notifyDataSetChanged() method in the Fragment where the adapter was initialized, but is there any way to call notifyDataSetChanged() from within the Sections?
After add new partitions and/or add an item to a section I call notifyDataSetChanged but the list is not refreshed. The data definitely change because after rotating the screen displays the updated list.
purchaselistRecyclerView.getAdapter().notifyDataSetChanged();