Code example for ValueAnimator

Methods: end

0
        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;
    } 
 
    /** 
     * This is the equivalent of calling Animator.start(), except that it can be called when 
     * the animation is running in the opposite direction, in which case we reverse 
     * direction and animate for a correspondingly shorter duration. 
     */