Java 类android.graphics.Interpolator 实例源码

项目:droidel    文件:View.java   
public void run() {
    long now = AnimationUtils.currentAnimationTimeMillis();
    if (now >= fadeStartTime) {

        // the animation fades the scrollbars out by changing
        // the opacity (alpha) from fully opaque to fully
        // transparent
        int nextFrame = (int) now;
        int framesCount = 0;

        Interpolator interpolator = scrollBarInterpolator;

        // Start opaque
        interpolator.setKeyFrame(framesCount++, nextFrame, OPAQUE);

        // End transparent
        nextFrame += scrollBarFadeDuration;
        interpolator.setKeyFrame(framesCount, nextFrame, TRANSPARENT);

        state = FADING;

        // Kick off the fade animation
        host.invalidate(true);
    }
}
项目:truth-android    文件:InterpolatorSubject.java   
public static SubjectFactory<InterpolatorSubject, Interpolator> type() {
  return new SubjectFactory<InterpolatorSubject, Interpolator>() {
    @Override
    public InterpolatorSubject getSubject(FailureStrategy fs, Interpolator that) {
      return new InterpolatorSubject(fs, that);
    }
  };
}
项目:truth-android    文件:InterpolatorSubject.java   
protected InterpolatorSubject(FailureStrategy failureStrategy, Interpolator subject) {
  super(failureStrategy, subject);
}
项目:assertj-android    文件:InterpolatorAssert.java   
public InterpolatorAssert(Interpolator actual) {
  super(actual, InterpolatorAssert.class);
}