Code example for Scroller

Methods: getDuration

0
     * 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. 
     */ 
    public int getCurrX() { 
        return mScroller.getCurrX();
    } 
 
    /** 
     * Returns the current Y offset in the scroll. 
     * 
     * @return The new Y offset as an absolute distance from the origin.