It does on my phone - Samsung Galaxy S with Android 2.1update1. This is the built-in Android email client, set up with an IMAP account.

I just had an idea.

It should be much easier to implement the header as part of data item view hierarchy. This way the number of items in the list view is exactly the same as the number of items in the cursor, and you can avoid extra code dealing with counting data items and mapping their positions.

You'd have two kinds of list item views - one with the header, one without. Deciding which one to use is pretty simple - in the adapter's getView, compare the item's data with the previous item's. If they differ, you need to use the version with the header.

-- Kostya

30.07.2010 22:44, Connick ?????:
The grouping itself is no problem ...its tossing in the arbitrary view to act as a header to each group within that list. From the looks of the client it doesn't use any type of headers in its list ...but thanks for the suggestion!


On Fri, Jul 30, 2010 at 2:38 PM, Kostya Vasilyev <[email protected] <mailto:[email protected]>> wrote:

    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

    To unsubscribe from this group, send email to
    [email protected]
    <mailto:android-developers%[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en


--
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


--
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

Reply via email to