Reputation: 11107
I am having my friends birthday's list extracted from the Facebook.
I populate the birthday date and Name in ListView..
I want the separator that having header for all month (i.e) January,Feb,March etc...
Persons having birthday in January month should listed below the "January header" then person having birthday in Feb should listed below Feb Header..Similarly upto December..
I am having separator header for Names of person by using "Alphabetic Section Indexer" similar i want to Separator for Month wise..
Check this Link, in these Alphabet is separator instead of that i want Months as Separator Alphabetic Adapter Thanks in advance..
Upvotes: 2
Views: 6444
Reputation: 289
I've been using this View for spliting lists into sections with a custom spearator. http://code.google.com/p/android-section-list/
Upvotes: 0
Reputation: 1052
Have a look at this Android: custom separator (or even item) in ListView depening on content of item
You can have group headers for non expandable lists also
Upvotes: 3
Reputation: 1283
Take a look at ExpandableListView. You can have each Month as a Group and the date/name fields as the Child. http://developer.android.com/reference/android/widget/ExpandableListView.html
Upvotes: 2