问题
I'm writing an Android application that contains lots of long lists and I need to accelerate scrolling somehow. The Android Contacts application for example uses a list of letters to allow quick scrolling to a certain spot in the list ... it's not exactly what I'm looking for though. I've seen other applications use a handle (or paddle) that appears when you start scrolling and allows you to easily drag the scrollbars to a specific location, that might be a better solution for me.
I'm wondering if anyone would have any info about either of the above methods or any other suggestions on how to accelerate scrolling through long lists (long meaning 500-750 items).
Thanks, Harry
回答1:
<ListView
...
android:fastScrollEnabled="true"/>
and this to "jump" in listView:
http://developer.android.com/reference/android/widget/SectionIndexer.html
来源:https://stackoverflow.com/questions/7563660/android-scrollbar-accelerator