List of usage examples for android.animation ValueAnimator isStarted
@Override public boolean isStarted()
From source file:android.support.v17.leanback.app.PlaybackSupportFragment.java
/** * End first or second animator if they are still running. *//* w w w. j a v a 2 s . c o m*/ static void endAll(ValueAnimator first, ValueAnimator second) { if (first.isStarted()) { first.end(); } else if (second.isStarted()) { second.end(); } }
From source file:android.support.v17.leanback.app.PlaybackSupportFragment.java
/** * if first animator is still running, reverse it; otherwise start second animator. */// w w w . j av a2s . c o m static void reverseFirstOrStartSecond(ValueAnimator first, ValueAnimator second, boolean runAnimation) { if (first.isStarted()) { first.reverse(); if (!runAnimation) { first.end(); } } else { second.start(); if (!runAnimation) { second.end(); } } }
From source file:com.quanliren.quan_one.pull.swipe.SwipeRefreshLayout.java
private boolean isAnimationRunning(ValueAnimator animation) { return animation != null && animation.isStarted() && animation.isRunning(); }