public final boolean isRunning() {
   ArrayList localArrayList = this.mAnimators;
   int i = localArrayList.size();
   for (int j = 0; j < i; j++) {
     Animation localAnimation = (Animation) localArrayList.get(j);
     if ((localAnimation.hasStarted()) && (!localAnimation.hasEnded())) {
       return true;
     }
   }
   return false;
 }
 @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;
 }
 public boolean isRunning()
 {
   ArrayList localArrayList = mAnimators;
   int j = localArrayList.size();
   int i = 0;
   while (i < j)
   {
     Animation localAnimation = (Animation)localArrayList.get(i);
     if ((localAnimation.hasStarted()) && (!localAnimation.hasEnded())) {
       return true;
     }
     i += 1;
   }
   return false;
 }
  public boolean open() {

    if (getDisplayedChild() == 1) {

      Animation inAnimation = getInAnimation();

      if (null != inAnimation) {

        if (inAnimation.hasStarted() && !inAnimation.hasEnded()) {
          return false;
        }

        inAnimation.setAnimationListener(
            new AnimationListener() {

              @Override
              public void onAnimationStart(Animation animation) {
                getChildAt(0).setVisibility(View.VISIBLE);
                if (null != mListener) mListener.OnOpenStart();
              }

              @Override
              public void onAnimationRepeat(Animation animation) {}

              @Override
              public void onAnimationEnd(Animation animation) {
                if (null != mListener) mListener.OnOpenEnd();
                getChildAt(1).setVisibility(View.GONE);
              }
            });
      }

      setDisplayedChild(0);
      return true;
    }
    return false;
  }
示例#5
0
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {

    switch (item.getItemId()) {
      case R.id.home:
        {
          if (slidedown.hasStarted()) {
            slidedown.cancel();
          }
          if (mediaPlayer.isPlaying()) {
            mediaPlayer.stop();
          }
          Intent home =
              new Intent(
                  Bi_Hen_Activity.this,
                  eslate.preparation.main.Eslate_preparatrion_MainActivity.class);
          home.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
          startActivity(home);
          finish();
          return true;
        }
    }
    return super.onOptionsItemSelected(item);
  }
 private boolean isAnimationRunning(Animation animation) {
   return (animation != null) && (animation.hasStarted()) && (!animation.hasEnded());
 }
 private boolean isAnimationRunning(Animation animation) {
   return animation != null && animation.hasStarted() && !animation.hasEnded();
 }