List of usage examples for android.animation Animator resume
public void resume()
From source file:Main.java
@SuppressLint("NewApi") public static void startOrResumeAnimator(Animator animator) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (animator.isPaused()) { animator.resume(); return; }//from www .j a va 2 s .c o m } animator.start(); }
From source file:Main.java
/** * resume/*from ww w . j av a 2 s . c o m*/ * * @param animator */ public static boolean resume(Animator animator) { if (animator != null) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { if (animator.isPaused()) { animator.resume(); return true; } } } return false; }
From source file:com.givewaygames.transition.Transition.java
/** * Resumes this transition, sending out calls to {@link * com.hirevue.manager.tmp.transition.Transition.TransitionListener#onTransitionPause(com.hirevue.manager.tmp.transition.Transition)} to all listeners * and pausing all running animators started by this transition. * * @hide/*from www. j a v a 2 s . co m*/ */ public void resume() { if (mPaused) { if (!mEnded) { ArrayMap<Animator, AnimationInfo> runningAnimators = getRunningAnimators(); int numOldAnims = runningAnimators.size(); for (int i = numOldAnims - 1; i >= 0; i--) { Animator anim = runningAnimators.keyAt(i); anim.resume(); } if (mListeners != null && mListeners.size() > 0) { ArrayList<TransitionListener> tmpListeners = (ArrayList<TransitionListener>) mListeners.clone(); int numListeners = tmpListeners.size(); for (int i = 0; i < numListeners; ++i) { tmpListeners.get(i).onTransitionResume(this); } } } mPaused = false; } }