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

来源:互联网 发布:软件任务单模版 编辑:程序博客网 时间:2024/05/29 16:17
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()方法通知数据已改变造成的。
0 0
原创粉丝点击