【发布时间】:2016-08-15 09:58:34
【问题描述】:
我正在使用这样的 AnimatorSet playSequentially 方法:
AnimatorSet set = new AnimatorSet();
ObjectAnimator in = ObjectAnimator.ofFloat(splash, "alpha", 0f, 1f);
in.setDuration(2500);
in.setInterpolator(new AccelerateInterpolator());
ObjectAnimator out = ObjectAnimator.ofFloat(splash, "alpha", 1f, 0f);
out.setDuration(2500);
out.setInterpolator(new AccelerateInterpolator());
set.playSequentially(in,out);
我想在动画 1 和 2 之间添加延迟,如下所示:
set.playSequentially(in,1000,out);
是否可以使用 playSequentially 方法在动画之间添加延迟?
谢谢。
【问题讨论】:
标签: android animation android-animation objectanimator animatorset