I have a search feature which displays results in a ListView. I’m finding it difficult to implement an alphabetical sectioned list. Please give me idea of how to do it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can find bunch of this topic using Google. Here some best tutorial in my opinion. Basically you use
SectionIndexerto create an index and show(or hide) view ingetViewmethod of your adapter.1, ListView Tips & Tricks #2: Sectioning your ListView by Cyril Mottier.
2, Pinned Header ListView as in the Contacts app by Peter Kuterna.
3, IndexableListView by Daniel Nam