java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
来源:互联网 发布:怎么找网络水军 编辑:程序博客网 时间:2024/05/01 18:09
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. [in ListView(2131296326, class com.kyutils.view.RTPullListView) with Adapter(class android.widget.HeaderViewListAdapter)]
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.
with Adapter
解决办法:
//lv_listview.setAdapter(mAdapter);不要在主线程中这样改为下面方法
Message mess = mHandler.obtainMessage();
mess.what = 0;
mHandler.sendMessage(mess);
case 0:
lv_listview.setAdapter(mAdapter);
//mAdapter.refreshData(mDatas);
break;
///
runOnUiThread(new Runnable() {
public void run() {
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.
with Adapter
解决办法:
//lv_listview.setAdapter(mAdapter);不要在主线程中这样改为下面方法
Message mess = mHandler.obtainMessage();
mess.what = 0;
mHandler.sendMessage(mess);
case 0:
lv_listview.setAdapter(mAdapter);
//mAdapter.refreshData(mDatas);
break;
///
runOnUiThread(new Runnable() {
public void run() {
adapter...
}
});
0 0
- 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 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 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 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 did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- .IllegalStateException:The content of the adapter has changed but ListView did not receive a notific
- The content of the adapter has changed but ListView did not receive a notification,java.lang.IndexOu
- Adapter报错:The content of the adapter has changed but ListView did not receive a
- Adapter报错:The content of the adapter has changed but ListView did not receive a
- Adapter报错:The content of the adapter has changed but ListView did not receive a
- listview提示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
- 文件类型声明的理解来源
- 【android开发】使用PopupWindow实现页面点击顶部弹出下拉菜单
- Drupal 7 建站学习手记(三):Nivo Slider模块报错的问题
- ubuntu+haproxy+keepalived主从负载
- MDI窗体(多文档界面)
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- 云环境下面向能耗降低的资源负载均衡方法
- SQLite入门
- js实现php函数urlencode
- java网络编程之TCP
- Oracle 体系结构
- Python,itertool的ifilter
- android UI进阶之弹窗的使用
- Python 字典存储