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.
views:
54answers:
2
+4
A:
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.
TalkLittle
2010-07-12 02:48:53