我正在使用自定义ListView
和BaseAdapter
。我的自定义ListView
包含另一个自定义ListView
,因此我在BaseAdapter
上呼叫另一个getView()
。它正在完美地显示数据但是当我触摸嵌套ListView
上的任何项目时,应用程序崩溃并显示以下错误:
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. [in ListView(2131296379, class com.amibiotech.dynamin.NonScrollListView) with Adapter(class com.amibiotech.dynamin.MyOrderProducts)]
请帮我解决这个问题。
答案 0 :(得分:0)