There are 2 ways to enable this functionality in your application:
By adding the property in your XML layout file:
<ListViewandroid:id="@id/android:list"android:layout_width="fill_parent"android:layout_height="fill_parent"android:fastScrollEnabled="true" />
or by adding it in your java code:
getListView().setFastScrollEnabled(true);
Both of them work the same the only trick is that you need to have at least 35 items in your ListView in order to see the fast scrolling box. You can see the end result in the image.
Hope it helps some one, happy coding :)
VERY NICE :)
ReplyDeleteThat's what I was searching.
ReplyDeleteI have seen in iOS and some other platforms that here is a narrow column at extreme right side that contains alphabets and it it is overlay on the list view. Have you any idea?
thanks a lot. i did not guessed about 35 items and was wondering why it's not working.
ReplyDeletethanks mate
ReplyDelete