I am using RecyclerView with SwipeRefreshLayout and when the elements of RecyclerView increase, the notifyDataSetChanged blocks the indecator of SwipeRefreshLayout from cycling animation until the binding finished.
I have tired the following solutions but no success:
- How to use notifyDataSetChanged() in thread "using ui thread still blocking the animation"
- RecyclerView blocking ui thread during updates "optimizing update data set by update only the changed items will only minimize the blocking time but did not solve issue"
Any suggestions?