notifyDataSetChanged()用于动态的更新ListView中的数据。最后还是会调用Adapter中的getView函数。
notifyDataSetChanged()相比于setAdapter()的区别在于,对于scrap heap中存在的view,不会再去inflate。
参考链接:
https://www.pocketdigi.com/20100827/75.html
notifyDataSetChanged()用于动态的更新ListView中的数据。最后还是会调用Adapter中的getView函数。
notifyDataSetChanged()相比于setAdapter()的区别在于,对于scrap heap中存在的view,不会再去inflate。
参考链接:
https://www.pocketdigi.com/20100827/75.html