/** * Removes the specified custom {@link android.animation.Animator.AnimatorListener} from * this view. * * @param animatorListener the custom animator listener. */ public void removeAnimatorListener(Animator.AnimatorListener animatorListener) { animator.removeListener(animatorListener); }
/** * Removes a listener from the set listening to this processor. * * @param listener the listener to be removed from the current set of listeners for this * processor. */ public void removeListener(@NonNull IconicsAnimationListener listener) { if (mListeners == null) { return; } mListeners.remove(listener); if (mListeners.size() == 0) { mListeners = null; mAnimator.removeListener(mProxyListener); } }
/** * Removes all {@link #addListener(IconicsAnimationListener) listeners} and * {@link #addPauseListener(IconicsAnimationPauseListener) pauseListeners} from this processor. */ public void removeAllListeners() { if (mListeners != null) { mListeners.clear(); mListeners = null; mAnimator.removeListener(mProxyListener); } if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (mPauseListeners != null) { mPauseListeners.clear(); mPauseListeners = null; mAnimator.removePauseListener(mProxyPauseListener); } } }
public void removeListener(Animator.AnimatorListener listener) { if (animator != null) animator.removeListener(listener); } }
@Override public void onAnimationEnd(Animator animation) { int newPosition = reverse ? position - 1 : position + 1; animateDropDownItem(newPosition, reverse, duration, listener); animator.removeListener(this); }
@Override public void onAnimationEnd(Animator animator) { performProgressiveAnimation(); mAnimator.removeListener(this); }
@Override public void onAnimationEnd(Animator animation) { mAutoAnimator.removeListener(this); TLRLog.v("startAutoRefreshAnimator isKeepHeadRefreshing:" + isKeepHeadRefreshing); if (isKeepHeadRefreshing) { startKeepAnimator(); } else { startResetAnimator(); } } });
private void cancelAnimator(){ if (mBloomAnimator != null){ mBloomAnimator.removeListener(mAnimatorListener); mBloomAnimator.removeUpdateListener(mAnimatorUpdateListener); if (mBloomAnimator.isRunning()) { mBloomAnimator.cancel(); } mBloomAnimator = null; } }
protected void releaseFocusOutAnim() { if (animOut != null) { animOut.removeUpdateListener(focusOutUpdateListener); animOut.removeListener(focusOutListener); animOut.end(); animOut.cancel(); animOut = null; } }
protected void releaseFocusInAnim() { if (animIn != null) { animIn.removeUpdateListener(focusInUpdateListener); animIn.removeListener(focusInListener); animIn.end(); animIn.cancel(); animIn = null; } }