@Override
public SkinAnimator apply(@NonNull final View view, @Nullable final Action action) {
animator = ObjectAnimator.ofPropertyValuesHolder(view,
PropertyValuesHolder.ofFloat("alpha", 1, 0),
PropertyValuesHolder.ofFloat("scaleX", 1, 0),
PropertyValuesHolder.ofFloat("scaleY", 1, 0)
);
animator.setDuration(3 * PRE_DURATION);
animator.setInterpolator(new AnticipateInterpolator());
animator.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationEnd(Animator animation) {
super.onAnimationEnd(animation);
resetView(view);
if (action != null) {
action.action();
}
}
});
return this;
}
ScaleHideAnimator.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:AndroidSkinAnimator
作者:
评论列表
文章目录