Index for ListView?

Is it possible to have an index to the right of the ListView? This is possible on the iPhone, where it works on the right, shows the alphabet. Touching a letter in the alphabet leads to the beginning of items in the ListView that begin with that letter.

Is there any embedded code in Android for this feature? Or is that what you would need to do to order?

+5
source share
2 answers

Not exactly what you want. It is very similar. First set the fast scroll mode in the ListView:

ListView.setFastScrollEnabled(true);

run the following interface using your adapter:

android.widget.SectionIndexer

http://developer.android.com/reference/android/widget/SectionIndexer.html

This way, you can quickly scroll through the ListView using the thumb button.

SectionIndexer, , , .

+20

All Articles