Search code examples
androidlistviewnotifydatasetchanged

listview but no notifyDatasetChanged


I have a ListView populated from a ResourceCursorAdapter (with getView() and bindView() methods) but there is no notifyDatasetChanged() option, only a deferNotifyDatasetChanged() (which doesn't do anything) one.

How can I mark the ListView to be updated?


Solution

  • there is no NotifyDatasetChanged option

    notifyDataSetChanged() is a method of the Adapter class not of ListView

    How can I mark the listview to be updated

    Try calling it on your Adapter so that it can be notified that the underlying data has been changed and update the ListView