首页 > 代码库 > ScrollView滚动条的各种设置

ScrollView滚动条的各种设置

ScrollView滚动条不显示:android:scrollbars="none"
ScrollView滚动条恒显示:android:fadeScrollbars="false"


设置水平滚动条的drawable(如颜色):android:scrollbarThumbHorizontal

设置垂直滚动条的drawable(如颜色):android:scrollbarThumbVertical

设置水平滚动条背景(轨迹)的色drawable(如颜色):android:scrollbarTrackHorizontal

 

设定滚动条宽度:android:scrollbarSize

 

参考自:

http://www.cnblogs.com/fighter/archive/2011/09/18/2180005.html

http://xiaxveliang.blog.163.com/blog/static/297080342012112634422781/

ScrollView滚动条的各种设置