列表视图但没有 notifyDatasetChanged

listview but no notifyDatasetChanged

我有一个 ListViewResourceCursorAdapter 填充(使用 getView()bindView() 方法)但是没有 notifyDatasetChanged() 选项,只有 deferNotifyDatasetChanged()(什么都不做)一个。

如何标记要更新的 ListView

我假设你的意思是你从 ResourceCursorAdapter 填充 ListView?

您需要在 ResourceCursorAdapter 而非 ListView 上调用 notifyDataSetChanged()

there is no NotifyDatasetChanged option

notifyDataSetChanged() is a method of the Adapter class ListView

How can I mark the listview to be updated

尝试在您的 Adapter 上调用它,以便通知它基础数据已更改并更新 ListView