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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -