private Animation scaleSmallAnim(int duration, final View child) {
AnimationSet animationSet = new AnimationSet(true);
ScaleAnimation scaleAnim = new ScaleAnimation(1.0f, 0.0f, 1.0f, 0.0f,
Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,
0.5f);
AlphaAnimation alphaAnim = new AlphaAnimation(1f, 0.0f);
alphaAnim.setFillAfter(true);
animationSet.addAnimation(scaleAnim);
animationSet.addAnimation(alphaAnim);
animationSet.setDuration(duration);
return animationSet;
}
BottomMenu.java 文件源码
java
阅读 41
收藏 0
点赞 0
评论 0
项目:BottomMenu
作者:
评论列表
文章目录