Re: [ottawaandroid] Android Widget Library
- From:
- Rob Woods
- Date:
- 2011-12-08 @ 16:03
Looks useful! I wonder if I can make use of this on my current project. I
had to create a custom grid view because the standard grid view doesn't
support headers. Basically I need to display a sorted grid of data with
category headers. For example, sorted chronologically "Today",
"Yesterday", "Last Week".. Or sorted alphabetically by friend "Brian",
"Calin", "Sarah", etc. I'm sorting my data using a TreeMap in my adapter,
and planning to have a separate view to represent a header. Then override
thegetViewTypeCount() and getItemViewType() methods from ViewGroup. Then
just draw the header view when I hit one and automatically move to next
line for the next non-header.
Rob W.
On Thu, Dec 8, 2011 at 6:04 AM, Christopher Saunders <
c.saunders322@gmail.com> wrote:
> Hey,
>
> I came across this GreenDroid library on the androiddev reddit and am
> wondering if anyone's played with it yet -
> http://android.cyrilmottier.com/?p=240
>
> Cheers,
>
> --
> Christopher Saunders
> http://christophersaunders.ca/
>