我搜遍了所有,但找不到解决方案.
我在scrollview中有一个视图(让我们称之为myView).myView比屏幕大.由于我能够在myView中获取手指的相对 x,y位置,因此当我的手指进入某个上/下阈值时,我想让scrollView自动滚动到顶部/底部.我有一些想法,即将拖动位置转换为屏幕位置,但这并没有解决这个问题.
提前致谢
干杯
android android-scrollview
android ×1
android-scrollview ×1