本文介绍了ListView 使用两个游标适配器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些代码对数据库执行两个查询并返回两个游标对象.有什么办法可以组合这两个游标,以便所有 ListView
都从两者中获取数据?
I have some code which executes two queries against a database and returns two cursor objects. Is there any way that I can combine these two cursors so that all the ListView
gets the data from both?
推荐答案
MergeCursor(如果无法连接表).
这篇关于ListView 使用两个游标适配器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!