Nul*_*ion 1 animation android android-animation objectanimator animatorset
我正在使用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);
Run Code Online (Sandbox Code Playgroud)
我想在动画1和2之间添加延迟,如下所示:
set.playSequentially(in,1000,out);
Run Code Online (Sandbox Code Playgroud)
使用playSequentially方法可以在动画之间添加延迟吗?
谢谢.