Android: how to refresh ListView contents?

后端 未结 9 945
渐次进展
渐次进展 2020-11-28 04:58

My ListView is using an extension of BaseAdapter, I can not get it to refresh properly. When I refresh, it appears that the old data draws on top

9条回答
  •  心在旅途
    2020-11-28 05:43

    Only this works for me everytime, note that I don't know if it causes any other complications or performance issues:

    private void updateListView(){
            listview.setAdapter(adapter);
        }
    

提交回复
热议问题