java.lang.IllegalArgumentException: Called attach on a child which is not detached: ViewHolder{30f3d859 position=0 id=-1, oldPos=-1, pLpos:-1} android.support.v7.widget.RecyclerView{11946c1e VFE..... ......ID 0,0-720,1130 #7f0901ae app:id/recycler_view}, adapter:com.adapter.Adapter@e979d6a, layout:android.support.v7.widget.GridLayoutManager@32575cff, context:com.chainstyle.MainActivity@3be09db6
开发时出现这种错误,解决办法是:Adapter.notifyItemChanged(position +1);
不知道适不适用你们
网友评论