【发布时间】:2017-07-24 12:50:33
【问题描述】:
我正在使用带有 SwipeRefreshLayout 的 RecyclerView,当 RecyclerView 的元素增加时,notifyDataSetChanged 会阻止 SwipeRefreshLayout 的指示符阻止循环动画,直到绑定完成。
我已经厌倦了以下解决方案但没有成功:
- How to use notifyDataSetChanged() in thread“使用ui线程仍然阻塞动画”
- RecyclerView blocking ui thread during updates "优化更新数据集,只更新改变的项 只是尽量减少阻塞时间,但没有解决问题”
有什么建议吗?
【问题讨论】:
-
github.com/mikepenz/FastAdapter 也使用项目 ID
标签: android android-recyclerview swiperefreshlayout