Code example for OverScroller

Methods: computeScrollOffset

0
     * Call this when you want to know the new location. The position will be 
     * updated and can be obtained by getPosition(). Returns true if  the 
     * animation is not yet finished. 
     */ 
    public boolean advanceAnimation(long currentTimeMillis) {
        return mScroller.computeScrollOffset();
    } 
 
    public boolean isFinished() { 
        return mScroller.isFinished();
    } 
 
    public void forceFinished() { 
        mScroller.forceFinished(true);
    } 
 
    public int getPosition() { 
        return mScroller.getCurrX();
    } 
 
Experience pair programming with AI  Get Codota for Java