您的位置:首页 > 其它

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

2015-10-10 08:43 639 查看
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. Make sure your adapter calls notifyDataSetChanged() when its content changes.

出现此错误的原因是,adapter的数据改变了但是没有调用adapter的notifyDataSetChanged()方法通知数据已改变造成的。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: