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); } }
public static SubjectFactory<InterpolatorSubject, Interpolator> type() { return new SubjectFactory<InterpolatorSubject, Interpolator>() { @Override public InterpolatorSubject getSubject(FailureStrategy fs, Interpolator that) { return new InterpolatorSubject(fs, that); } }; }
protected InterpolatorSubject(FailureStrategy failureStrategy, Interpolator subject) { super(failureStrategy, subject); }
public InterpolatorAssert(Interpolator actual) { super(actual, InterpolatorAssert.class); }