我正在使用一个列表,在右侧显示一个拇指风格的滚动处理程序样式。
如何删除它?
谢谢
喜欢:
答案 0 :(得分:1)
在Listview Xml属性
中<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fastScrollEnabled="false" >
</ListView>
android:fastScrollEnabled =“false”
使false
以上属性可以帮助您。
答案 1 :(得分:1)
使用 机器人:滚动条=&#34;无&#34;在您提到列表视图代码的xml文件中。
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none" />
答案 2 :(得分:0)
使用android:scrollbars="none"
所以ListView的例子是:
<ListView
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none" />