本文整理汇总了Java中android.graphics.Interpolator类的典型用法代码示例。如果您正苦于以下问题:Java Interpolator类的具体用法?Java Interpolator怎么用?Java Interpolator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Interpolator类属于android.graphics包,在下文中一共展示了Interpolator类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: run
import android.graphics.Interpolator; //导入依赖的package包/类
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);
}
}
示例2: type
import android.graphics.Interpolator; //导入依赖的package包/类
public static SubjectFactory<InterpolatorSubject, Interpolator> type() {
return new SubjectFactory<InterpolatorSubject, Interpolator>() {
@Override
public InterpolatorSubject getSubject(FailureStrategy fs, Interpolator that) {
return new InterpolatorSubject(fs, that);
}
};
}
示例3: InterpolatorSubject
import android.graphics.Interpolator; //导入依赖的package包/类
protected InterpolatorSubject(FailureStrategy failureStrategy, Interpolator subject) {
super(failureStrategy, subject);
}
示例4: InterpolatorAssert
import android.graphics.Interpolator; //导入依赖的package包/类
public InterpolatorAssert(Interpolator actual) {
super(actual, InterpolatorAssert.class);
}