title: How can I play two animatedVectorDrawables sequentially?
body: <p>I saw this tutorials (<a href="https://medium.com/androiddevelopers/re-animation-7869722af206" rel="nofollow noreferrer">1</a> and <a href="https://android.jlelse.eu/animatedvectordrawablecompat-3d9568727c53" rel="nofollow noreferrer">2</a>) about using <code>AnimatedVectorDrawableCompat</code>.</p>
  
  <p>What's the way to play two animatedVectorDrawables sequentially?</p>
  
  <p>For <code>ObjectAnimator</code> I would use <code>AnimatorSet</code>. For <code>AnimatedVectorDrawableCompat</code> I should use <code>AnimationCallback</code> ?</p>
  
  <pre><code>    if (drawable instanceof AnimatedVectorDrawableCompat) {
        AnimatedVectorDrawableCompat avdc = (AnimatedVectorDrawableCompat) drawable;
        avdc.registerAnimationCallback(new Animatable2Compat.AnimationCallback(){
          public void onAnimationEnd(Drawable drawable) {
  
          };        
        });
        avdc.start();
  }
  </code></pre>
  
  <p>I saw it's problematic for API and I thought to ask if there is a cleaner way.</p>
  
  <p><a href="https://i.stack.imgur.com/OiNeI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OiNeI.png" alt="enter image description here"></a></p>