便签

记录点滴

The content of the adapter has changed but ListView did not receive a notification
在Android编程中使用Adapter时,偶尔会出现如下错误: 

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。

看了网上好几个帖子 

http://bbs.csdn.net/topics/390286824

http://www.eoeandroid.com/thread-79950-1-1.html

http://blog.csdn.net/garybook/article/details/7498342

http://gundumw100.iteye.com/blog/1738829

最直接有效的就是  从线程新获得的新数据先传到主线程,不要直接在子线程中为其赋值.

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/L644649662/article/details/46801021
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

The content of the adapter has changed but ListView did not receive a notification

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭