/**
* Get an enlarged animation
*
* @param durationMillis duration
* @param animationListener Animation monitor
* @return An enlarged animation
*/
public static ScaleAnimation getAmplificationAnimation(long durationMillis, Animation.AnimationListener animationListener) {
ScaleAnimation scaleAnimation = new ScaleAnimation(0.0f, 1.0f, 0.0f,
1.0f, ScaleAnimation.RELATIVE_TO_SELF,
ScaleAnimation.RELATIVE_TO_SELF);
scaleAnimation.setDuration(durationMillis);
scaleAnimation.setAnimationListener(animationListener);
return scaleAnimation;
}
AnimationUtils.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:androidtools
作者:
评论列表
文章目录