/**
* 结束时的动画 平移到底部
*/
public static Animation translateAlphaFinishAnimation() {
TranslateAnimation translateAnimation = new TranslateAnimation(Animation.RELATIVE_TO_SELF, 0, Animation.RELATIVE_TO_SELF, 0f,
Animation.RELATIVE_TO_SELF, 0f, Animation.RELATIVE_TO_SELF, 1f);
AlphaAnimation alphaAnimation = new AlphaAnimation(1, 0);
setDefaultConfig(translateAnimation, true);
setDefaultConfig(alphaAnimation, true);
translateAnimation.setDuration(DEFAULT_DIALOG_FINISH_ANIM_TIME);
alphaAnimation.setDuration(DEFAULT_DIALOG_FINISH_ANIM_TIME);
AnimationSet animationSet = new AnimationSet(false);
animationSet.addAnimation(alphaAnimation);
animationSet.addAnimation(translateAnimation);
return animationSet;
}
AnimUtil.java 文件源码
java
阅读 36
收藏 0
点赞 0
评论 0
项目:RLibrary
作者:
评论列表
文章目录