Java Code Examples for android.view.animation.Animation#hasStarted()

The following examples show how to use android.view.animation.Animation#hasStarted() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MaterialProgressDrawable.java    From SwipyRefreshLayout with MIT License 5 votes vote down vote up
@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;
}
 
Example 2
Source File: MaterialProgressDrawable.java    From AlipayPullRefresh with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 3
Source File: MaterialProgressDrawable.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 4
Source File: MaterialProgressDrawable.java    From BookReader with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 5
Source File: SwipyMaterialProgressDrawable.java    From AndroidStudyDemo with GNU General Public License v2.0 5 votes vote down vote up
@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;
}
 
Example 6
Source File: MaterialProgressDrawable.java    From weex with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 7
Source File: MaterialProgressDrawable.java    From AndroidUI with MIT License 5 votes vote down vote up
@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;
}
 
Example 8
Source File: MaterialProgressDrawable.java    From RefreshLayout with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 9
Source File: MaterialProgressDrawable.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 10
Source File: MaterialProgressDrawable.java    From AgentWebX5 with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 11
Source File: MaterialProgressDrawable.java    From ucar-weex-core with Apache License 2.0 5 votes vote down vote up
@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;
}
 
Example 12
Source File: SwipeRefreshLayout.java    From Android-Application-ZJB with Apache License 2.0 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 13
Source File: SettingFragment.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
private boolean a(Animation animation)
{
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 14
Source File: TabLayout.java    From attendee-checkin with Apache License 2.0 4 votes vote down vote up
private static boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 15
Source File: ISwipeRefreshLayout.java    From AndroidUiKit with Apache License 2.0 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 16
Source File: SwipeToRefreshLayout.java    From SwipeToRefresh with MIT License 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 17
Source File: SwipeRefreshLayout.java    From mooc_hyman with Apache License 2.0 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 18
Source File: SwipeRefreshLayout.java    From fangzhuishushenqi with Apache License 2.0 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 19
Source File: SwipeRefresh.java    From Android-Application-ZJB with Apache License 2.0 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}
 
Example 20
Source File: SwipeRefreshLayout.java    From Overchan-Android with GNU General Public License v3.0 4 votes vote down vote up
private boolean isAnimationRunning(Animation animation) {
    return animation != null && animation.hasStarted() && !animation.hasEnded();
}