stream stream - 1 year ago 133
Android Question

How to draw a section header in android listview just like the ios's UITableview?

I want to draw some section headers in android listview just like the Contacts app did.
When the listview was dragged the section headers will move flatly,thanks.

Answer Source

Just look at this Android – Sectioned Headers in ListViews example, Its nicely describe how to implement Sectioned Headers in ListViews.



Jeff Sharkey's SeparatedListAdapter

MergeAdapter by CommonsWare