0

私はこのようなAnimatorSet playSequentially方法使用しています:AnimatorSetのアニメーション間に遅延を追加する方法playSequentially()?

set.playSequentially(in,1000,out); 

アニメーション間の遅延を追加することが可能である:私はこのように、アニメーション1と2の間の遅延を追加したいとwhould

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); 

をplaySequentiallyメソッドを使用して?

ありがとうございます。

答えて

3

は、このコード行を追加します。

out.setStartDelay(1000); 
1

あなたがセットに追加する前に、第二アニメーター(すなわち、out.setStartDelay(1000))の開始遅延を設定することができます。

関連する問題