Android Listview 隱藏滾動條


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM