Code example for DecelerateInterpolator

Methods: getInterpolation

0
  private void onAnimateStep() 
  { 
    if (this.mAnimationContinue)
    { 
      float f = (float)(System.currentTimeMillis() - this.mStartTime) / (float)(this.mEndTime - this.mStartTime);
      double d = this.mAnimateInterpolator.getInterpolation(f) * this.mTotalDegrees;
      this.mRotation.set(this.mAnimateStart);
      onMoveVelocity(d);
      if (f < 1.0F)
        post(new Runnable()
        { 
          public void run() 
          { 
            NeedleMeterView.this.onAnimateStep();
          } 
        }); 
    } 
  } 
 
  private double speedToDegrees(double paramDouble)
  {