Code example for Scroller

Methods: isFinished

0
     * Returns whether the scroller has finished scrolling. 
     * 
     * @return True if the scroller has finished scrolling, false otherwise. 
     */ 
    public boolean isFinished() { 
        return mScroller.isFinished();
    } 
 
    /** 
     * Returns how long the scroll event will take, in milliseconds. 
     * 
     * @return The duration of the scroll in milliseconds. 
     */ 
    public int getDuration() { 
        return mScroller.getDuration();
    } 
 
    /** 
     * Returns the current X offset in the scroll. 
     * 
     * @return The new X offset as an absolute distance from the origin.