Code example for OverScroller

Methods: computeScrollOffset, getCurrY

0
    } 
 
    @Override 
    public void computeScroll() { 
        Log.d(TAG, "computeScroll");
        if (mScroller.computeScrollOffset()) {
            scrollTo(0, mScroller.getCurrY());
        } 
    } 
 
    @Override 
    protected void onLayout(boolean changed, int left, int top, int right,
            int bottom) {
        Log.d(TAG, "onLayout changed:: " + changed);
        super.onLayout(changed, left, top, right, bottom);
    } 
 
    /** 
     * Checks if there is a cached view that can be used. 
     *  
     * @return A cached view or, if none was found, null