How to make Listview's Scroll slower?

后端 未结 2 783
庸人自扰
庸人自扰 2021-02-05 09:06

Scroll of my listview is very fast. I want to customize this and want to make it slower. I tried set android:fastscrollenabled=\"false\" but don\'t solve this probl

相关标签:
2条回答
  • 2021-02-05 09:36

    check

    http://developer.android.com/reference/android/widget/AbsListView.html#setFriction(float)

    mListView.setFriction(0.005f);
    
    0 讨论(0)
  • 2021-02-05 09:42

    Please use setFriction(float) method of ListView. Because default friction value could differ between devices, it's better to use base value from ViewConfiguration.getScrollFriction()

    Example:

    setFriction(ViewConfiguration.getScrollFriction() * 2);
    
    0 讨论(0)
提交回复
热议问题