在<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时哪个滚动条应该显示出来,或者不显示。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-06-21
  • 2021-10-31
  • 2021-12-22
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-12-04
  • 2022-02-05
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案