On Tue, Jul 13, 2010 at 6:54 PM, Jens <jens.is.loca...@googlemail.com> wrote: > What is the preferred way to sectionize a ListView by declaring a > header before each section?
In the end, you need a ListAdapter that is aware of your sections and can put in the headings as needed. You could roll one yourself. Or, you could use my MergeAdapter: http://github.com/commonsguy/cwac-merge Here is a sample of using that for section headings: http://github.com/commonsguy/cw-advandroid/tree/master/ListView/Sections/ There are other implementations of the same concept floating around as well. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en