0
我已经把下面的代码在for循环中: - 。如何在AnimatorSet的动画停止后立即执行动作?
set8.playTogether(
ObjectAnimator.ofFloat(ball4, "translationX", x1, xn),
ObjectAnimator.ofFloat(ball4, "translationY", y1, yn),
ObjectAnimator.ofFloat(ball8, "translationX", xn, x1),
ObjectAnimator.ofFloat(ball8, "translationY", yn, y1)
);
set8.setDuration(t).start();
的for循环,我想等前一次迭代的animaition完成每一次迭代之前。有没有办法做到这一点?
在我的项目中,我在图像上有一个onclick监听器。我也想让onclicklistener在上面的代码中完成动画之前无法使用。
有没有办法做这些事?
但是,如何使用此方法进行下一次迭代?你可以简化这个.. @ziv – 2014-09-28 07:40:40
我编辑了我的答案,请检查。 – ziv 2014-09-28 11:30:23