开发者

Android ListView Adapter notifyDataSetInvalidated() vs notifyDataSetChanged()

开发者 https://www.devze.com 2023-03-13 09:15 出处:网络
What is the difference? The android documentation doesn\'t have a description for notifyDataSetInvalidated(). I was thinking maybe you call that function to notify all registered listeners, but use no

What is the difference? The android documentation doesn't have a description for notifyDataSetInvalidated(). I was thinking maybe you call that function to notify all registered listeners, but use notifyDataSetChange开发者_运维问答d() to not notify them?


Changed means the data set changed. Individual items updated, or items were added or removed. Invalidated means the data source is no longer available.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号