AnimationService.java 文件源码

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

项目:Pocket-Plays-for-Twitch 作者:
/**
 * For the Activity Circle Icon and text
 */

public static AnimationSet startAlphaRevealAnimation(final View VIEW) {
    final int ANIMATION_DURATION = 1000;

    final Animation mShowViewAnimation = new AlphaAnimation(0f, 1f);
    mShowViewAnimation.setDuration(ANIMATION_DURATION);

    AnimationSet mAnimations = new AnimationSet(true);
    mAnimations.setInterpolator(new AccelerateDecelerateInterpolator());
    mAnimations.addAnimation(mShowViewAnimation);
    mAnimations.setFillAfter(true);

       if(VIEW != null)
        VIEW.startAnimation(mAnimations);

    return mAnimations;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号