Android Listview 隱藏滾動條

轉載:http://www.cnblogs.com/fengzhblog/p/3179922.html


在<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時哪個滾動條應該顯示出來,或者不顯示。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章