我需要进行实现在listView中,实现button功能,在listView扩展时,在获得listView的内容函数里,如果我把
ArrayList<Map<String, Object>> libr_list=new ArrayList<Map<String, Object>>();
作为全局的变量放在类中,就会报错,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。
纠结一下,使用notifyDateSetChanged()也没有解决问题...,我会继续研究下