I have a listview in alphabetic order and as the user scrolls i want a way to see the
first letter.Like a phone catalog.
I have a listview in alphabetic order and as the user scrolls i want
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.
It seems you can do it using android.widget.AlphabetIndexer. See this link to the relevant file in Contacts git.
More generally the SectionIndexer interface, which AlphabetIndexer implements, seems to indicate that by implementing SectionIndexer you can enable fast scrolling between sections of a list.
android.widget.FastScroller is another key class. It does the actual drawing of the letters, so you probably want to check out that class.
See core/java/android/widget/FastScroller.java in the platform/frameworks/base.git for the source.