Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android turn off scrolling animation

How do I stop an Android scrollview from having the inertia scrolling? Default use is when I scroll faster it keeps scrolling further after I lift my finger from the device.

I would like it to just stop scrolling when I let go. Is there a flag in the XML for a scrollview for this?

like image 964
CQM Avatar asked Dec 21 '25 22:12

CQM


1 Answers

There is the setSmoothScrollbarEnabled()-method which should deactivate this behavior. It also has a XML-Attribute called smoothScrollbar.

like image 180
Lukas Knuth Avatar answered Dec 23 '25 11:12

Lukas Knuth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!