Code example for OverScroller

Methods: fling

0
     * Fling the this view. 
     *  
     * @param velocityY 
     */ 
    void fling(int velocityY) {
        mScroller.fling(0, getScrollY(), 0, velocityY, 0, 0, 0,
                Integer.MAX_VALUE);
        invalidate();
    } 
 
    /** 
     * Scroll the this view. 
     *  
     * @param distanceY 
     */ 
    void scroll(int distanceY) {
        scrollBy(0, distanceY);
    } 
 
    /** 
     * A convenience class to extend when you only want to listen for a subset