/**
* 生成ScaleAnimation
*
* time=300
*/
public static Animation getScaleAnimation(float fromX,
float toX,
float fromY,
float toY,
int pivotXType,
float pivotXValue,
int pivotYType,
float pivotYValue) {
Animation scaleAnimation = new ScaleAnimation(fromX, toX, fromY, toY, pivotXType, pivotXValue, pivotYType,
pivotYValue
);
scaleAnimation.setDuration(300);
scaleAnimation.setFillEnabled(true);
scaleAnimation.setFillAfter(true);
return scaleAnimation;
}
SimpleAnimUtil.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录