neworld
neworld

Reputation: 7793

Main difference between ListView notifiDataSetChanged() and notifiDataSetInvalidated()

I know ListAdapter.notifiDataSetChanged() calls DataSetObserver.onChanged() and ListAdapter.notifiDataSetInvalidated() calls DataSetObserver.onInvalidated(). But I don't really know how they affects ListViews.

Upvotes: 0

Views: 149

Answers (1)

Alex Orlov
Alex Orlov

Reputation: 18107

DateSetInvalidated invalidates your scroll position and your selections. You basically saying that Adapters old state is no longer valid.

Upvotes: 1

Related Questions