Search code examples
androidscrollscrollviewflagssmoothing

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?


Solution

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