Android RecyclerView : notifyDataSetChanged() IllegalStateException

前端 未结 22 1865
天涯浪人
天涯浪人 2020-11-28 02:57

I\'m trying to update the items of a recycleview using notifyDataSetChanged().

This is my onBindViewHolder() method in the recycleview adapter.

@Over         


        
22条回答
  •  无人及你
    2020-11-28 03:41

    Using a Handler for adding items and calling notify...() from this Handler fixed the issue for me.

提交回复
热议问题