AnimationUtils.java 文件源码

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

项目:androidtools 作者:
/**
 * 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;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号