Code example for Scroller

Methods: abortAnimation

0
    } 
 
    @Override 
    public boolean onDown(MotionEvent motionEvent) {
        if (getScrollX() == 0 && getScrollY() == 0 && !allowManualOpen) return false;
        scroller.abortAnimation();
        anchorX = motionEvent.getX();
        anchorY = motionEvent.getY();
        anchorScrollX = getScrollX();
        anchorScrollY = getScrollY();
        return true; 
    } 
 
    @Override 
    public void onShowPress(MotionEvent motionEvent) {}
 
    @Override 
    public boolean onSingleTapUp(MotionEvent motionEvent) {
        return false; 
    }