View.java 文件源码

java
阅读 35 收藏 0 点赞 0 评论 0

项目:droidel 作者:
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);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号