fm/fmapp2/src/com/caf/fmradio/HorizontalNumberPicker.java
private void changeCurrentByOne(boolean increment) {
        if (mFlingable) {
            mSelectorWheelPaint.setAlpha(SELECTOR_WHEEL_BRIGHT_ALPHA);
            mPreviousScrollerY = 0;
            mPreviousScrollerX = 0;
            forceCompleteChangeCurrentByOneViaScroll();
            if (increment) {
                if (mHorizontal) {
                    mFlingScroller.startScroll(0, 0, -mSelectorElementHeight,
                            0, CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                } else {
                    mFlingScroller.startScroll(0, 0, 0,
                            -mSelectorElementHeight,
                            CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                }

            } else {
                if (mHorizontal) {
                    mFlingScroller.startScroll(0, 0, mSelectorElementHeight, 0,
                            CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                } else {
                    mFlingScroller.startScroll(0, 0, 0, mSelectorElementHeight,
                            CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                }

            }
            invalidate();
        } else {
            if (increment) {
                changeCurrent(mValue + 1);
            } else {
                changeCurrent(mValue - 1);
            }
        }
    }
/**
     * Changes the current value by one which is increment or decrement based on
     * the passes argument.
     *
     * @param increment
     *            True to increment, false to decrement.
     */
Changes the current value by one which is increment or decrement based on
the passes argument.

@param increment
True to increment, false to decrement.
Changes the current value by one which is increment or decrement based on the passes argument . @param increment True to increment false to decrement .
private void changeCurrentByOne(boolean increment) {
        if (mFlingable) {
            mSelectorWheelPaint.setAlpha(SELECTOR_WHEEL_BRIGHT_ALPHA);
            mPreviousScrollerY = 0;
            mPreviousScrollerX = 0;
            forceCompleteChangeCurrentByOneViaScroll();
            if (increment) {
                if (mHorizontal) {
                    mFlingScroller.startScroll(0, 0, -mSelectorElementHeight,
                            0, CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                } else {
                    mFlingScroller.startScroll(0, 0, 0,
                            -mSelectorElementHeight,
                            CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                }
            } else {
                if (mHorizontal) {
                    mFlingScroller.startScroll(0, 0, mSelectorElementHeight, 0,
                            CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                } else {
                    mFlingScroller.startScroll(0, 0, 0, mSelectorElementHeight,
                            CHANGE_CURRENT_BY_ONE_SCROLL_DURATION);
                }
            }
            invalidate();
        } else {
            if (increment) {
                changeCurrent(mValue + 1);
            } else {
                changeCurrent(mValue - 1);
            }
        }
    }
private void changeCurrentByOne ( boolean increment ) { if ( mFlingable ) { mSelectorWheelPaint . setAlpha ( SELECTOR_WHEEL_BRIGHT_ALPHA ) ; mPreviousScrollerY = 0 ; mPreviousScrollerX = 0 ; forceCompleteChangeCurrentByOneViaScroll ( ) ; if ( increment ) { if ( mHorizontal ) { mFlingScroller . startScroll ( 0 , 0 , - mSelectorElementHeight , 0 , CHANGE_CURRENT_BY_ONE_SCROLL_DURATION ) ; } else { mFlingScroller . startScroll ( 0 , 0 , 0 , - mSelectorElementHeight , CHANGE_CURRENT_BY_ONE_SCROLL_DURATION ) ; } } else { if ( mHorizontal ) { mFlingScroller . startScroll ( 0 , 0 , mSelectorElementHeight , 0 , CHANGE_CURRENT_BY_ONE_SCROLL_DURATION ) ; } else { mFlingScroller . startScroll ( 0 , 0 , 0 , mSelectorElementHeight , CHANGE_CURRENT_BY_ONE_SCROLL_DURATION ) ; } } invalidate ( ) ; } else { if ( increment ) { changeCurrent ( mValue + 1 ) ; } else { changeCurrent ( mValue - 1 ) ; } } }
Changes the current value by one which is increment or decrement based on
 the passes argument.
Changes the current value by one which is increment or decrement based on the passes argument .