Code example for ValueAnimator

Methods: cancel

0
        mAnimator.start();
        mFirstRun = false;
    } 
 
    public void cancel() { 
        mAnimator.cancel();
        mDirection = STOPPED;
    } 
 
    public void end() { 
        mAnimator.end();
        mDirection = STOPPED;
    } 
 
    /** 
     * Return true when the animation is not running and it hasn't even been started. 
     */ 
    public boolean isStopped() { 
        return mDirection == STOPPED;
    }