app/src/main/java/com/example/hxl/travel/widget/citypicker/widget/wheel/WheelScroller.java
/**
     * Scroll the wheel
     * @param distance the scrolling distance
     * @param time the scrolling duration
     */
Scroll the wheel
@param distance the scrolling distance
@param time the scrolling duration
Scroll the wheel @param distance the scrolling distance @param time the scrolling duration
public void scroll(int distance, int time) {
        scroller.forceFinished(true);
        lastScrollY = 0;
        scroller.startScroll(0, 0, 0, distance, time != 0 ? time : SCROLLING_DURATION);
        setNextMessage(MESSAGE_SCROLL);
        startScrolling();
    }
public void scroll ( int distance , int time ) { scroller . forceFinished ( true ) ; lastScrollY = 0 ; scroller . startScroll ( 0 , 0 , 0 , distance , time != 0 ? time : SCROLLING_DURATION ) ; setNextMessage ( MESSAGE_SCROLL ) ; startScrolling ( ) ; }
Scroll the wheel
 @param distance the scrolling distance
 @param time the scrolling duration
Scroll the wheel @param distance the scrolling distance @param time the scrolling duration