Code example for OverScroller

Methods: getCurrX

0
    public void forceFinished() { 
        mScroller.forceFinished(true);
    } 
 
    public int getPosition() { 
        return mScroller.getCurrX();
    } 
 
    public float getCurrVelocity() { 
        return mScroller.getCurrVelocity();
    } 
 
    public void setPosition(int position) {
        mScroller.startScroll(
                position, 0,    // startX, startY
                0, 0, 0);       // dx, dy, duration 
 
        // This forces the scroller to reach the final position. 
        mScroller.abortAnimation();
    } 
Connect your IDE to all the code out there  Get Codota for Java