Code example for ObjectAnimator

Methods: isRunning, reverse

0
    } 
 
    public void fadeOutBackground() { 
        if (mBackgroundPhase == BackgroundPhase.APPEARING_OR_VISIBLE) {
            mBackgroundPhase = BackgroundPhase.DISAPPEARING_OR_GONE;
            if (mBackgroundAnimator.isRunning()) {
                mBackgroundAnimator.reverse();
            } else { 
                ObjectAnimator.ofInt(this, "backgroundColorAlpha", DIM_BACKGROUND_ALPHA, 0).
                        setDuration(mAnimationDuration).start();
            } 
        } 
    } 
 
    public boolean isContentFullyVisible() { 
        return mForegroundPhase == ForegroundPhase.IDLE;
    } 
 
    /** Begin animating {@link #getChild()} visible. */ 
    public void showContent(final Runnable onAnimationEndRunnable) {
        if (mForegroundPhase == ForegroundPhase.BEFORE) {