/**
* Make a shrink animation.
* @param duration
* @return
*/
public static Animator shrinkAnimator(int duration){
AnimatorSet animatorSet = new AnimatorSet();
ObjectAnimator xExpandAnimator = new ObjectAnimator();
xExpandAnimator.setPropertyName("scaleX");
xExpandAnimator.setFloatValues(1.0f, 0.5f);
ObjectAnimator yExpandAnimator = new ObjectAnimator();
yExpandAnimator.setPropertyName("scaleY");
yExpandAnimator.setFloatValues(1.0f, 0.5f);
animatorSet.play(xExpandAnimator).with(yExpandAnimator);
animatorSet.setDuration(duration);
animatorSet.setInterpolator(new AnticipateInterpolator());
return animatorSet;
}
GeneralAnimatorGenerator.java 文件源码
java
阅读 25
收藏 0
点赞 0
评论 0
项目:IndicatorBox
作者:
评论列表
文章目录