ListView/Adapter IllegalStateException
来源:互联网 发布:smtp默认端口号 编辑:程序博客网 时间:2024/05/21 04:21
ListView/Adapter IllegalStateException
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() 刷新listview的时候,如果当前listview还未来得及刷新,你就去触摸listview,就会导致跳出出错信息呢?
解决办法是,通过设置listview.setVisibility(View.VISIBLE/View.GONE)。
在 adapter.notifyDataSetChanged() 之前调用listview.setVisibility(View.GONE);在adapter.notifyDataSetChanged() 之后调用listview.setVisibility(View.VISIBLE)
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- ListView/Adapter IllegalStateException
- 解决java.lang.IllegalStateException ( ListView adapter)
- ListView IllegalStateException
- ListView IllegalStateException
- Android, ListView IllegalStateException: “The content of the adapter has changed but ListView did no
- .IllegalStateException:The content of the adapter has changed but ListView did not receive a notific
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- 解决java.lang.IllegalStateException: The content of the adapter has changed but ListView...的问题
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- 常用宏操作
- 禁止服务器控件双击文本框选择
- Platform device and platform driver
- SQL中使用WITH AS提高性能-使用公用表表达式(CTE)简化嵌套SQL
- Ubuntu命令
- ListView/Adapter IllegalStateException
- 一种关系数据库实现的Tree数据结构
- 局部disable warning
- 各种initcall的执行先后顺序(module_init、postcore_initcall、arch_initcall、subsys_initcall、 fs_initcall)
- cookie,只显示一次的DIV提示框
- network: android 网络判断
- jquery bind动态绑定事件传参
- 十月份推广,景城网也尝试使用QQ邮件群反的方式,那么如何 采集QQ邮箱地址呢?大部分是廊坊本地的。QQ导出好友 QQ导出通讯录 QQ邮箱采集 如何导出QQ好友
- HDU 1048 The Hardest Problem Ever