本文整理匯總了Java中android.view.animation.Animation.hasStarted方法的典型用法代碼示例。如果您正苦於以下問題:Java Animation.hasStarted方法的具體用法?Java Animation.hasStarted怎麽用?Java Animation.hasStarted使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類android.view.animation.Animation
的用法示例。
在下文中一共展示了Animation.hasStarted方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: isRunning
import android.view.animation.Animation; //導入方法依賴的package包/類
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
示例2: isRunning
import android.view.animation.Animation; //導入方法依賴的package包/類
@Override
public boolean isRunning() {
final ArrayList<Animation> animators = mAnimators;
final int N = animators.size();
for (int i = 0; i < N; i++) {
final Animation animator = animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
示例3: isRunning
import android.view.animation.Animation; //導入方法依賴的package包/類
public boolean isRunning() {
ArrayList<Animation> animators = this.mAnimators;
int N = animators.size();
for (int i = 0; i < N; i++) {
Animation animator = (Animation) animators.get(i);
if (animator.hasStarted() && !animator.hasEnded()) {
return true;
}
}
return false;
}
示例4: isAnimationRunning
import android.view.animation.Animation; //導入方法依賴的package包/類
private boolean isAnimationRunning(Animation animation) {
return animation != null && animation.hasStarted() && !animation.hasEnded();
}
示例5: isAnimationRunning
import android.view.animation.Animation; //導入方法依賴的package包/類
private boolean isAnimationRunning(Animation animation) {
return (animation == null || !animation.hasStarted() || animation.hasEnded()) ? false : true;
}