如何在Android中将可拖动滚动条添加到scrollview/listview? [英] How to add draggable scrollbar to scrollview/listview in Android?
本文介绍了如何在Android中将可拖动滚动条添加到scrollview/listview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用我创建的customListAdapter的listView.当用户滚动列表时,他/她会像往常一样在右侧看到滚动指示器.
I have a listView that uses a customListAdapter created by me. When user scrolls the list, he/she sees scrolling indicator as usual on the right side.
但是,我想在右侧显示可拖动的跟踪按钮,以便用户可以按住该按钮并快速滚动列表.
However, I want to show a draggable track-button on the right side, so user will be able to hold that button and quickly scroll through the list.
我该怎么做?
推荐答案
我相信xml值fastScrollEnabled
和可选的fastScrollAlwaysVisible
是您要为ListView设置的值
I believe the xml values fastScrollEnabled
and optionally fastScrollAlwaysVisible
are what you want to set for the ListView
android:fastScrollEnabled="true"
android:fastScrollAlwaysVisible="true"
fastScrollEnabled
允许拖动滚动条.
这篇关于如何在Android中将可拖动滚动条添加到scrollview/listview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文