limedroid / ARecyclerView

一个库搞定recyclerview
MIT License
185 stars 56 forks source link

adapter删除item有问题,出现这个错误Called attach on a child which is not detached: ViewHolder #24

Open chocozhao opened 4 years ago

chocozhao commented 4 years ago

场景:在adapter有一个尾布局时,删除最后一个item出现cause:Called attach on a child which is not detached: ViewHolder{6f3df28 position=2 id=-1, oldPos=-1, pLpos:-1} cn.droidlover.xrecyclerview.XRecyclerView{4c46441 VFED..... ......ID 0,0-1020,1520 #7f0900a1 app:id/add_device_recyclerview}, adapter:cn.droidlover.xrecyclerview.XRecyclerAdapter@970ade6, layout:android.support.v7.widget.LinearLayoutManager@fda4f27