ListView控件使用两个cursoradapters? [英] ListView using two cursoradapters?
本文介绍了ListView控件使用两个cursoradapters?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一些code,其执行对数据库两个查询和返回两个光标对象。有没有办法,我可以结合这两个光标,使所有的的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?
推荐答案
有<一个href=\"http://developer.android.com/intl/de/reference/android/database/MergeCursor.html\">MergeCursor对于(如果没有办法连接表)。
There's MergeCursor for that (if there's no way to join tables).
这篇关于ListView控件使用两个cursoradapters?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文