In my activity I reference ScrollView. According to the requirements, I should disable the inertial scrolling of ScrollView. How can I do that?
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Try this,
These worked form me, but I'm not sure if it is good for performance.
What I did was create a new View extending the ScrollView and override the onTouchEvent method:
I don't know watch happens it alter the state machine that control scrolling and movement on the view, but it works.
perhaps, you should also check the source code of the ScrollView to check if there is anything important else to do.
If you wish to pursue such endeavour, here you have the source code at dispose:
https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/java/android/widget/ScrollView.java