0
我目前使用这个设置我听说不建议再使用,因为支持已经停止。我应该使用SimpleCursorAdapter
setListAdapter(new SimpleCursorAdapter(this,
R.layout.testlist, cur,
displayFields, displayViews
));
我目前使用这个设置我听说不建议再使用,因为支持已经停止。我应该使用SimpleCursorAdapter
setListAdapter(new SimpleCursorAdapter(this,
R.layout.testlist, cur,
displayFields, displayViews
));
根据the documentation这个问题是不是与使用SimpleCursorAdapter
它与你使用的构造函数。显然,它使用UI线程进行更新,这可能会导致应用程序显得呆滞或无响应。使用包含flags
参数的构造函数来避免获取弃用警告。可替代地,
作为替代方案,可以使用LoaderManager与CursorLoader
编辑
用于确定适配器的(行为,如每CursorAdapter的背景信息,光标旗, INT)。
什么是flags参数? – Somk 2011-06-06 16:45:10
@Max,看我上面的编辑。更多信息可在我提供的链接 – 2011-06-06 16:50:31
谢谢,我看了一下,那里似乎只有两个标志,其中一个也没有建议。我应该使用其他标志还是更好地尝试loadermanager方法? – Somk 2011-06-06 22:05:44