Stacy,
You might want to look at the source for Android's built-in email
client. It groups messages by date, i.e. "today", "yesterday", "more
recent".
Don't know for sure if its source is available, but I think it is (K9
mail is based on it).
-- Kostya
30.07.2010 22:32, Mark Murphy пишет:
On Fri, Jul 30, 2010 at 2:29 PM, Connick<[email protected]> wrote:
Requirement: Display query results in a list with a header view atop each
group. (results grouped from database)
Looking at Mark's MergeAdapter. Wondering if I might be able to use a single
cursor and have each adapter filter on the group field? That a viable
approach?
I suspect that would be troublesome, since Cursor objects know their
position, and you'd need the position to be constantly jumping around.
You can do headings with a single Cursor -- my sleep-deprived brain
has a couple of ideas, none I'm in position to flesh out right this
moment -- but you'd need to take a substantially different approach
than does the MergeAdapter.
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en