Fast Scrolling in Android happens when you have a lot of items in your
screen and you need to scroll fast. When it is activated you well see an
small box coming from the right of the screen and when you drag it up
or down it goes really fast. You can see this in your contact list,
email or any application that has a lot of data and is sorted
alphabetically.
There are 2 ways to enable this functionality in your application:
By adding the property in your XML layout file:
or by adding it in your java code:
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);
No comments:
Post a Comment