Android(安卓)Listview 隐藏滚动条
16lz
2021-12-04
在<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时哪个滚动条应该显示出来,或者不显示。
更多相关文章
- Android动画学习笔记-Android(安卓)Animation
- Android(安卓)UI: LinearLayout中layout_weight 属性的使用规则
- Android布局属性
- android 中动画
- Android(安卓)TransitionManager源码解析
- onRetainNonConfigurationInstance和getLastNonConfigurationIns
- Android(安卓)1.5 1.6 2.0 2.1 2.2都有什么区别
- 面试官:作为Android高级攻城狮,请你解释一下 android:text 到 Text
- Android高手进阶教程(四)之----Android(安卓)中自定义属性(attr.