code: public boolean computeScroll() {
          if (finished) {
              return false;
          }
  
          long elapsed = SystemClock.elapsedRealtime() - startRtc;
          if (elapsed >= duration) {
              finished = true;
              currValue = finalValue;
              return false;
          }
  
          float time = interpolator.getInterpolation((float) elapsed / duration);
          currValue = interpolate(startValue, finalValue, time);
          return true;
      }
docs: Computes the current value, returning true if the animation is still active and false if the
  animation has finished.
  
  @return Computed scroll
  @see android.widget.Scroller#computeScrollOffset()