'How to make ListView's scroll slower when using smoothScrollToPosition() function?
Scroll of my ListView
is very fast when using smoothScrollToPosition(int position)
function. I want to customize this and want to make it slower.
I tried set android:fastscrollenabled="false"
and setFriction(ViewConfiguration.getScrollFriction() * 5)
but it does not solve this problem.
Can someone help me?
Solution 1:[1]
You may want to try
smoothScrollToPositionFromTop(position, offset, delay);
where offset
is distance from the top and delay
is the total amount of time to complete the scroll.
You could also set the delay based on the scroll amount, such as a larger delay for greater distance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Abandoned Cart |