@OnClick(R.id.btn_start)
public void onAction() {
float start = mView.getY();
if (start > 680f) {
start = 0f;
mView.setY(0f);
}
ObjectAnimator anim = ObjectAnimator.ofFloat(mView, "Y", start, mView.getY() + 180f);
anim.setDuration(800);
anim.setInterpolator(new CycleInterpolator(0.5f));
anim.start();
}
PathFragment.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:AndroidAnimationDemo
作者:
评论列表
文章目录