Android 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时哪个滚动条应该显示出来,或者不显示。

猜你喜欢

转载自blog.csdn.net/qq_42362997/article/details/105517934
今日推荐