Android ListView Adapter notifyDataSetInvalidated () vs notifyDataSetChanged ()

What is the difference? There is no description in the Android documentation for notifyDataSetInvalidated (). I thought maybe you call this function to notify all registered listeners, but use notifyDataSetChanged () to notify them?

+58
android android-listview android-adapter
Jun 17 2018-11-11T00:
source share
1 answer

Changed means the dataset has changed. Individual items are updated, or items are added or removed. Invalid means the data source is no longer available.

+76
Jun 17 2018-11-11T00:
source share



All Articles