Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I'm implemented additional webview before my previous list (string data and ImageView) and concatenate them with ConcatAdapter.
Now i have previous adapter (list of data), additional new one (webview), and adapter ConcatAdapter.
But any clicking, and any use of notifyDataSetChanged looks like refreshing all UI.
I tried
((SimpleItemAnimator) recyclerViewList.getItemAnimator()).setSupportsChangeAnimations(false);
but no help with it.
What could help with UI blinking?
The list of data on the fist adapter has string data and ImageView and mostly flickering ImageView.
Before webview ImageView works fine.
A lot of hours but very simple solution:
ConcatAdapter.Config config = new ConcatAdapter.Config.Builder()
.setStableIdMode(ConcatAdapter.Config.StableIdMode.SHARED_STABLE_IDS).build();
adapter1.setHasStableIds(true);
adapter2.setHasStableIds(true);
concatAdapter = new ConcatAdapter(config, adapter1, adapter2);
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.