How to use fast scroll in android?

Rakshi picture Rakshi · Feb 21, 2012 · Viewed 45.5k times · Source

I have a list of events which are seperated by month and year (Jun 2010, Jul 2010 etc.)

I want to enable fast scrolling because the list is really long.

How do I enable fast scroll on ListViews in Android?

Answer

Maurice picture Maurice · Feb 21, 2012

In the onCreate method of the ListActivity use setFastScrollEnabled:

getListView().setFastScrollEnabled(true);