fm/fmapp2/src/com/caf/fmradio/HorizontalNumberPicker.java
private void fling(int velocity) {
        mPreviousScrollerY = 0;
        mPreviousScrollerX = 0;
        int velocityY = velocity;
        int velocityX = velocity;
        if (mHorizontal) {
            if (velocityX > 0) {
                mFlingScroller.fling(0, 0, velocityX, 0, 0, Integer.MAX_VALUE,
                        0, 0);
            } else {
                mFlingScroller.fling(Integer.MAX_VALUE, 0, velocityX, 0, 0,
                        Integer.MAX_VALUE, 0, 0);
            }
        } else {
            if (velocityY > 0) {
                mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0,
                        Integer.MAX_VALUE);
            } else {
                mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0,
                        0, Integer.MAX_VALUE);
            }
        }

        invalidate();
    }
/**
     * Flings the selector with the given <code>velocityY</code>.
     */
Flings the selector with the given velocityY.
Flings the selector with the given velocityY .
private void fling(int velocity) {
        mPreviousScrollerY = 0;
        mPreviousScrollerX = 0;
        int velocityY = velocity;
        int velocityX = velocity;
        if (mHorizontal) {
            if (velocityX > 0) {
                mFlingScroller.fling(0, 0, velocityX, 0, 0, Integer.MAX_VALUE,
                        0, 0);
            } else {
                mFlingScroller.fling(Integer.MAX_VALUE, 0, velocityX, 0, 0,
                        Integer.MAX_VALUE, 0, 0);
            }
        } else {
            if (velocityY > 0) {
                mFlingScroller.fling(0, 0, 0, velocityY, 0, 0, 0,
                        Integer.MAX_VALUE);
            } else {
                mFlingScroller.fling(0, Integer.MAX_VALUE, 0, velocityY, 0, 0,
                        0, Integer.MAX_VALUE);
            }
        }
        invalidate();
    }
private void fling ( int velocity ) { mPreviousScrollerY = 0 ; mPreviousScrollerX = 0 ; int velocityY = velocity ; int velocityX = velocity ; if ( mHorizontal ) { if ( velocityX > 0 ) { mFlingScroller . fling ( 0 , 0 , velocityX , 0 , 0 , Integer . MAX_VALUE , 0 , 0 ) ; } else { mFlingScroller . fling ( Integer . MAX_VALUE , 0 , velocityX , 0 , 0 , Integer . MAX_VALUE , 0 , 0 ) ; } } else { if ( velocityY > 0 ) { mFlingScroller . fling ( 0 , 0 , 0 , velocityY , 0 , 0 , 0 , Integer . MAX_VALUE ) ; } else { mFlingScroller . fling ( 0 , Integer . MAX_VALUE , 0 , velocityY , 0 , 0 , 0 , Integer . MAX_VALUE ) ; } } invalidate ( ) ; }
Flings the selector with the given <code>velocityY</code>.
Flings the selector with the given <code > velocityY< / code > .