Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么区别?android 文档没有关于 notifyDataSetInvalidated() 的描述。我在想也许您调用该函数来通知所有注册的侦听器,但使用 notifyDataSetChanged() 不通知他们?
已更改意味着数据集已更改。更新了单个项目,或者添加或删除了项目。无效意味着数据源不再可用。