Code example for Scroller

Methods: abortAnimation, isFinished

0
        } 
 
        @Override 
        public boolean onDown(final MotionEvent e) {
            inTouch = true;
            if (!scroller.isFinished()) {
                scroller.abortAnimation();
                zoomModel.commit();
            } 
            return true; 
        } 
 
        @Override 
        public boolean onFling(final MotionEvent e1, final MotionEvent e2, final float vX, final float vY) {
            inTouch = false;
            scroller.fling((int) getCurrentValue(), 0, -(int)vX, 0, 0, (int)MAX_VALUE, 0, 0);
            ZoomRoll.this.postInvalidate();
            return true; 
        } 
 
        @Override