[英]android -How to speed up scroll amount in scrollview
I've a scrollview in my activity . 我的活动中有一个滚动视图。 When I scroll down , it doesn't scroll much and I want to increase the the amount of scroll .
当我向下滚动时,它滚动的并不多,我想增加滚动的数量。
How can I do so? 我该怎么办?
Flinging is the type of scrolling that occurs when a user drags and lifts her finger quickly.
浮动是用户快速拖动和抬起手指时发生的滚动类型。
@Override
public void fling(int velocityY) {
int topVelocityY = (int) ((Math.min(Math.abs(velocityY), MAX_SCROLL_SPEED) ) * Math.signum(velocityY));
super.fling(topVelocityY);
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.