Android ScrollView disable Inertial scrolling -


in activity reference scrollview. according requirements, should disable inertial scrolling of scrollview. how can that?

these worked form me, i'm not sure if performance.

what did create new view extending scrollview , override ontouchevent method:

@override public boolean ontouchevent(motionevent ev) {       switch (ev.getaction()){         case action_up:              return false;         default:             return super.ontouchevent(ev);     } } 

i don't know watch happens alter state machine control scrolling , movement on view, works.

perhaps, should check source code of scrollview check if there important else do.

if wish pursue such endeavour, here have source code @ dispose:

https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/scrollview.java


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -