从listview中删除滚动条拇指手柄

时间:2014-01-23 07:30:41

标签: android android-listview

我正在使用一个列表,在右侧显示一个拇指风格的滚动处理程序样式。

如何删除它?

谢谢

喜欢:

enter image description here

3 个答案:

答案 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" />