Android: Scrollbar Accelerator?

假如想象 提交于 2019-12-13 01:24:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!