AnimationUtils.java 文件源码

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

项目:androidtools 作者:
/**
 * Get a shrink animation
 *
 * @param durationMillis    duration
 * @param animationListener Animation monitor
 * @return A shrink animation
 */
public static ScaleAnimation getLessenScaleAnimation(long durationMillis, Animation.AnimationListener animationListener) {
    ScaleAnimation scaleAnimation = new ScaleAnimation(1.0f, 0.0f, 1.0f,
            0.0f, ScaleAnimation.RELATIVE_TO_SELF,
            ScaleAnimation.RELATIVE_TO_SELF);
    scaleAnimation.setDuration(durationMillis);
    scaleAnimation.setAnimationListener(animationListener);
    return scaleAnimation;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号