AnimationService.java 文件源码

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

项目:Pocket-Plays-for-Twitch 作者:
public static AnimationSet startAlphaHideAnimation(final View VIEW) {
    final int ANIMATION_DURATION = 350;

    final Animation mHideViewAnimation = new AlphaAnimation(1f, 0f);

    AnimationSet mAnimations = new AnimationSet(true);
    mAnimations.setDuration(ANIMATION_DURATION);
    mAnimations.setInterpolator(new AccelerateDecelerateInterpolator());
    mAnimations.addAnimation(mHideViewAnimation);
    mAnimations.setFillAfter(true);

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

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


问题


面经


文章

微信
公众号

扫码关注公众号