List of usage examples for android.animation Animator isRunning
public abstract boolean isRunning();
From source file:Main.java
public static void stopAnimator(Animator animator) { if (animator != null && animator.isRunning()) { animator.cancel();// ww w . j a v a 2s .c o m } }
From source file:Main.java
public static boolean isRunning(Animator animator) { return animator != null && animator.isRunning(); }
From source file:Main.java
public static void deleteAnimator(Animator animator) { if (animator != null && animator.isRunning()) { animator.cancel();//from w w w . ja v a 2 s . c om } animator = null; }
From source file:Main.java
public static void onDestroyActivity() { HashSet<Animator> animators = new HashSet<Animator>(sAnimators.keySet()); for (Animator a : animators) { if (a.isRunning()) { a.cancel();/*from w w w . jav a 2 s .co m*/ } sAnimators.remove(a); } }
From source file:Main.java
public static void onDestroyActivity() { HashSet<Animator> animators = new HashSet<Animator>(sAnimators); for (Animator a : animators) { if (a.isRunning()) { a.cancel();/* w w w . ja v a 2 s. co m*/ } else { sAnimators.remove(a); } } }
From source file:Main.java
public static void onDestroyActivity() { HashSet<Animator> animators = new HashSet<Animator>(sAnimators); for (Animator a : animators) { if (a.isRunning()) { /*a.cancel();*/ } else {/*from w ww . ja va2 s . co m*/ sAnimators.remove(a); } } }
From source file:com.hadis.mylunbo.carrousel.CircleIndicator.java
private void addIndicator(@DrawableRes int backgroundDrawableId, Animator animator) { if (animator.isRunning()) { animator.end();// w w w . j a va 2 s.c o m animator.cancel(); } View Indicator = new View(getContext()); Indicator.setBackgroundResource(backgroundDrawableId); addView(Indicator, mIndicatorWidth, mIndicatorHeight); LayoutParams lp = (LayoutParams) Indicator.getLayoutParams(); lp.leftMargin = mIndicatorMargin; lp.rightMargin = mIndicatorMargin; Indicator.setLayoutParams(lp); animator.setTarget(Indicator); animator.start(); }
From source file:com.hippo.widget.ProgressView.java
private void startAnimationActually() { ArrayList<Animator> animators = mAnimators; int N = animators.size(); for (int i = 0; i < N; i++) { Animator animator = animators.get(i); if (!animator.isRunning()) { animator.start();//from ww w.ja va 2s .c o m } } }
From source file:com.hippo.widget.ProgressView.java
public boolean isRunning() { ArrayList<Animator> animators = mAnimators; int N = animators.size(); for (int i = 0; i < N; i++) { Animator animator = animators.get(i); if (animator.isRunning()) { return true; }//from w w w . j a v a2s. c om } return false; }
From source file:com.hippo.vectorold.drawable.AnimatedVectorDrawable.java
@Override public boolean isRunning() { final ArrayList<Animator> animators = mAnimatedVectorState.mAnimators; final int size = animators.size(); for (int i = 0; i < size; i++) { final Animator animator = animators.get(i); if (animator.isRunning()) { return true; }//from ww w. j av a 2 s . co m } return false; }