Android Listview 隐藏滚动条


在<ListView>标签中设置属性。

android:fastScrollEnabled="false"

以下属性scrollbars可以设置为none也可以不设置为none。效果会有点不同。根据具体情况决定是否设置为none。

android:scrollbars="none"

属性fastScrollEnabled说明:

Enables the fast scroll thumb that can be dragged to quickly
scroll through the list. [boolean]

译:允许fast scroll thumb可以拖动来快速滚动列表。

属性scrollbars说明:

Defines which scrollbars should be displayed on scrolling or not.

译:定义在scrolling时哪个滚动条应该显示出来,或者不显示。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM