E/RecyclerView: No adapter attached; skipping layout
2017-03-30 15:45
1226 查看
报错的原因:
1:是否设置了LinearLayoutManager;
linearLayoutManager.setOrientation(OrientationHelper.VERTICAL);recyclerView.setLayoutManager(linearLayoutManager);
2: 你如果是异步获取数据,是否直接赋值给list,例如:list=myApplication.getManager.getlist(user),这个样adapter不更新不说,还出现recyclerview No adapter attached; skipping layout,你可以用list.addAll(result),这个result就是返回的list数据;
3.在onBindViewHolder绑定数据时,数据或接口发生改变。
《Android版本更新、热更新》系列课程视频
版本更新6.0,7.0统统搞定!!
热修复不在麻烦,再也不用担心上线后出bug!!
http://edu.csdn.net/course/detail/6523
http://edu.csdn.net/course/play/6523/131198
《Kotlin语法基础到实战开发》系列课程视频
http://edu.csdn.net/course/detail/6409?locationNum=7&fps=1&ref=srch&loc=1
http://edu.csdn.net/course/play/6409/123752
1:是否设置了LinearLayoutManager;
linearLayoutManager.setOrientation(OrientationHelper.VERTICAL);recyclerView.setLayoutManager(linearLayoutManager);
2: 你如果是异步获取数据,是否直接赋值给list,例如:list=myApplication.getManager.getlist(user),这个样adapter不更新不说,还出现recyclerview No adapter attached; skipping layout,你可以用list.addAll(result),这个result就是返回的list数据;
3.在onBindViewHolder绑定数据时,数据或接口发生改变。
《Android版本更新、热更新》系列课程视频
版本更新6.0,7.0统统搞定!!
热修复不在麻烦,再也不用担心上线后出bug!!
http://edu.csdn.net/course/detail/6523
http://edu.csdn.net/course/play/6523/131198
《Kotlin语法基础到实战开发》系列课程视频
http://edu.csdn.net/course/detail/6409?locationNum=7&fps=1&ref=srch&loc=1
http://edu.csdn.net/course/play/6409/123752
相关文章推荐
- 玄学之坑:RecyclerView: No adapter attached; skipping layout
- RecyclerView: No adapter attached; skipping layout
- 关于RecyclerView: No adapter attached; skipping layout
- recyclerview No adapter attached; skipping layout
- E/RecyclerView: No adapter attached; skipping layout
- 使用Recyclerview 遇到No adapter attached; skipping layout 问题
- RecyclerView: No adapter attached; skipping layout
- 使用RecyclerView加载网络图片时出现no adapter attached skipping layout
- RecylerView:no adapter attached;skipping layout
- android E/RecyclerView﹕ No adapter attached; skipping layout
- RecyclerView 提示No adapter attached; skipping layout 解决方法
- 使用RecyclerView时出现:RecyclerView: No adapter attached; skipping layout
- RecyclerView has no adapter, skip layout
- No layout manager attached; skipping layout
- SwipeRefreshLayout + RecyclerView+RecyclerView.Adapter 实现 上拉刷新 和 下拉刷新
- 错误LinearLayoutManager is already attached to a RecyclerView
- SwipeRefreshLayout、RecyclerView、BaseRecyclerViewAdapterHelper 三者组合的刷新加载View
- Android之RecyclerView的原生Bug-Inconsistency detected. Invalid view holder adapter positionViewHolder{a1bbfa3 position=2 id=-1, oldPos=-1, pLpos:-1 no parent}
- RecyclerView has no LayoutManager
- android开发 RecycleView之No adapter attached; skipping layout