今天工作中出现
10-13 17:07:47.410: E/AndroidRuntime(3791): 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(2131427433, class com.ab.view.pullview.AbPullListView) with Adapter(class android.widget.HeaderViewListAdapter)]
然后发现一种非常方便的解决办法
<span style="white-space:pre"> </span>news_item_ListView.setVisibility(View.GONE);
adapter.notifyDataSetChanged();
news_item_ListView.setVisibility(View.VISIBLE);
然后非常好用的就解决了这个问题。