我有一个ArrayAdapter,里面有一个AsyncTask,但是我不知道如何从onPostExecute调用notifyDataSetChangedpublic class ColorAdaptercolorList.remove(colorList.indexOf(...)); protected void onPostExecute(String s) {
//HOW CAN I CALL notifyDataSetChangedthis.notifyDataSetChanged</em
我一直在研究适配器,并尝试用notifydatasetchanged更新它。但我面临的问题是,在我成功更新适配器之后,我可以在列表视图中看到所做的更改,然后在我从其他片段返回后,它将更改回以前的数据。ArrayList<HashMap<String,Object>> obj) { member_list2.addAll(obj);}
me