Code example for Animation

Methods: cancel

0
        if (mExitAnimation != null) {
            mExitAnimation.cancel();
            mExitAnimation = null;
        } 
        if (mEnterAnimation != null) {
            mEnterAnimation.cancel();
            mEnterAnimation = null;
        } 
    } 
 
    public boolean isAnimating() { 
        return mEnterAnimation != null || mExitAnimation != null;
    } 
 
    public boolean stepAnimation(long now) {
        if (mEnterAnimation == null && mExitAnimation == null) {
            return false; 
        } 
 
        if (!mStarted) {
Experience pair programming with AI  Get Codota for Java