The content of the adapter has changed but ListView did not receive a notification 异常解决
2015-01-26 15:04
597 查看
我的项目中使用了PullToRefrehshListView,跑monkey,有时候会出现如下异常
说是Adapter改变数据没有notifyDataSetChanged或者是后台线程进行了adapter数据更新
但是我的项目中没有发现如提示的操作
最终被我找到了罪魁祸首是
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread.
说是Adapter改变数据没有notifyDataSetChanged或者是后台线程进行了adapter数据更新
但是我的项目中没有发现如提示的操作
最终被我找到了罪魁祸首是
mListView.setEmptyView(noShineView);改成
mListView.getRefreshableView().setEmptyView(noShineView);就再也没有出过类似问题了。
相关文章推荐
- 异常 The content of the adapter has changed but ListView did not receive a notification可能的一种解决方法
- 处理The content of the adapter has changed but ListView did not receive a notification异常
- 解决The content of the adapter has changed but ListView did not receive a notification
- The content of the adapter has changed but ListView did not receive a notification 异常解析
- 处理The content of the adapter has changed but ListView did not receive a notification异常
- 处理The content of the adapter has changed but ListView did not receive a notification异常
- 解决ListView的The content of the adapter has changed but ListView did not receive a notification崩溃问题
- 解决bug:The content of the adapter has changed but ListView did not receive a notification
- The content of the adapter has changed but ListView did not receive a notification 异常解决方案
- 问题解决:The content of the adapter has changed but ListView did not receive a notification
- .解决bug:The content of the adapter has changed but ListView did not receive a notification .
- 处理The content of the adapter has changed but ListView did not receive a notification异常
- 解决The content of the adapter has changed but ListView did not receive a notification的问题
- 处理The content of the adapter has changed but ListView did not receive a notification异常
- 解决问题The content of the adapter has changed but ListView did not receive a notification.
- The content of the adapter has changed but ListView did not receive a notification
- 【遇见Android bug】The content of the adapter has changed but ListView did not receive a notification
- The content of the adapter has changed but ListView did not receive a notification.
- The content of the adapter has changed but ListView did not receive a notification 错误的解决方案
- The content of the adapter has changed but ListView did not receive a notification