MatrixCursor和MergeCursor
Cursor c0 = MailboxList.this.managedQuery( EmailContent.Mailbox.CONTENT_URI, MailboxList.this.mListAdapter.PROJECTION, MAILBOX_SELECTION0, new String[] { String.valueOf(mAccountKey) }, MailboxColumns.TYPE); Cursor c1 = MailboxList.this.managedQuery( EmailContent.Mailbox.CONTENT_URI, MailboxList.this.mListAdapter.PROJECTION, MAILBOX_SELECTION, new String[] { String.valueOf(mAccountKey) }, MailboxColumns.TYPE/* + "," + MailboxColumns.DISPLAY_NAME*/); Cursor c2 = MailboxList.this.managedQuery( EmailContent.Mailbox.CONTENT_URI, MailboxList.this.mListAdapter.PROJECTION, MAILBOX_SELECTION1, new String[] { String.valueOf(mAccountKey) }, MailboxColumns.TYPE/* + "," + MailboxColumns.DISPLAY_NAME*/); Cursor[] cursors = new Cursor[] { c0, c1, c2 }; Cursor c = new MergeCursor(cursors);