Android index scrolling

http://developer.android.com/design/building-blocks/scrolling.html

I am looking for a solution to perform the second part ("Scrolling Index"), but I can not find examples for this. Is there a default API solution?

+7
source share
2 answers

To implement index scrolling, you must call setFastScrollEnabled(true) in a ListView. In addition, your adapter must implement the SectionIndexer interface.

Here you can find an example: http://spinettaro.blogspot.de/2011/11/android-snippet-code-android-listview.html

This should work with all views that are a subclass of AbsListView .

+18
source

Here is an example of the code hosted on GitHub. Check this,

https://github.com/rno/Android-ScrollBarPanel

+3
source

All Articles