I extended
RecyclerView.Adapter<RecyclerView.ViewHolder>
And when I called:
mRecyclerView.getAdapter().notifyDataSetChanged();
Nothing happened.
The only way to refresh the view is to set again the adapter (see this answer):
mRecyclerView.setAdapter(new MyAdapter(...));
I have two issues with this solution:
- I can see a blink on the screen when I set again the adapter
- The listview returns to the first position.
Any ideas?
onBindViewHolder
method. But what about the blink effect, how can I get rid of it? – Boost