android adapter.notifyDataSetChanged() 页面没有更新的原因

使用 adapter.notifyDataSetChanged() 时,必须保证传进 Adapter 的数据 List 是同一个 List,而不能是其他对象,否则无法更新 listview。

如果adapter的数据源需要重新赋值,可先调用 list.clear(),清除所有数据,再将新数据添加到原list中

原文地址:https://www.cnblogs.com/ice5/p/14170717.html