public boolean computeScrollOffset(){
  if (mFinished) {
    return false;
  }
  final long timePassed=AnimationUtils.currentAnimationTimeMillis() - mStartTime;
  float timePassedPercent=timePassed * 1f / mDuration;
  if (timePassed >= mDuration) {
    mFinished=true;
    timePassedPercent=1f;
  }
  mCurrValue=Math.round(mValueFactor * mPathPointsHolder.getY(timePassedPercent));
  return true;
}

public boolean computeScrollOffset ( ) { if ( mFinished ) { return false ; } final long timePassed = AnimationUtils . currentAnimationTimeMillis ( ) - mStartTime ; float timePassedPercent = timePassed * 1f / mDuration ; if ( timePassed >= mDuration ) { mFinished = true ; timePassedPercent = 1f ; } mCurrValue = Math . round ( mValueFactor * mPathPointsHolder . getY ( timePassedPercent ) ) ; return true ; }
call this when you want to know the new location ( " value " ) . if it returns true , the animation is not yet finished .
