小编sfi*_*igo的帖子

关于在 RecyclerView 中插入的 notifyItem

我发现IllegalArgumentException: Called attach on a child which is not detached什么时候用它mFeedAdapter.notifyItemInserted(0)来改变数据,找到这个

但解决方案是更改notifyItemInsertednotifyDataSetChanged.
我不想改变功能,因为我想保留动画。我能做什么 ?

android notifydatasetchanged android-recyclerview

5
推荐指数
0
解决办法
300
查看次数