Reputation: 858
I want to implement list view similar to the contacts UI in android i.e alphabets list on right side of screen and section headers consists of starting letter, data is coming from database.
I have found few links but these are using AlphabetIndexer
and not showing A-Z list on right side of screen. This link shows how to create headers but these header are static I want to create headers dynamically means if I don't have data starting with letter 'B' no header should be created. below is screen shot of UI
![contact listview screenshot][1]
Upvotes: 0
Views: 2106
Reputation: 19743
You can try using the Simple Section Adapter I have written. You need a layout for the header that mimics the contacts application and also another layout for the contacts list item. Here are a few examples as well.
Also the book example I have specified in the above mentioned link does exactly what you are looking for.
Upvotes: 1