@Override
public SkinAnimator apply(@NonNull View view, @Nullable final Action action) {
this.targetView = view;
preAnimator = ObjectAnimator.ofPropertyValuesHolder(targetView,
PropertyValuesHolder.ofFloat("scaleX",
1, 0.5f, 0.2f, 0.05f, 0.8f, 1),
PropertyValuesHolder.ofFloat("scaleY",
1, 0.5f, 0.2f, 0.05f, 0.8f, 1),
PropertyValuesHolder.ofFloat("rotationY", 0, 720))
.setDuration(PRE_DURATION * 3);
preAnimator.setInterpolator(new LinearInterpolator());
view.postDelayed(new Runnable() {
@Override
public void run() {
if(action != null){
action.action();
}
}
}, PRE_DURATION);
preAnimator.setInterpolator(new AccelerateDecelerateInterpolator());
return this;
}
SkinRotateAnimator3.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:AndroidSkinAnimator
作者:
评论列表
文章目录