Code example for Scroller

Methods: fling

0
            } 
             
            startCommon(); 
             
            int initialX = initialVelocity < 0 ? Integer.MAX_VALUE : 0;
            mScroller.fling(initialX, 0, initialVelocity, 0, 0, Integer.MAX_VALUE, 0, Integer.MAX_VALUE);
            post(this);
        } 
 
        private void endFling(boolean scrollIntoSlots) {
            // Force the scroller's status to finished (without setting its 
            // position to the end) 
            mScroller.forceFinished(true);
 
            fireScrollStateChanged(OnScrollListener.SCROLL_STATE_IDLE); 
        } 
 
        public void run() { 
            if (getChildCount() == 0) {
                endFling(true); 
                return;