项目: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,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);
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。