更新时间:2021-09-28 22:03:33
一个更好的方法(如here)是覆盖一扔方法在自定义库类:
A better approach (as described here) is to override the fling method in your custom gallery class:
@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
return false;
}