title: How to detect that finish an animation Lottie and show a Toast
body: <p>I have this code that shows an animation, I want to know how to show a Toast when the animation is over</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_splash_screen);
  
      lottieAnimationLogo = findViewById(R.id.lottieAnimationLogo);
  
      startCheckAnimationLogo();
  
  }
  
  private void startCheckAnimationLogo(){
      ValueAnimator animator = ValueAnimator.ofFloat(0f, 1f).setDuration(3000);
      animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(){
          @Override
          public void onAnimationUpdate(ValueAnimator animation){
              lottieAnimationLogo.setProgress((Float)animation.getAnimatedValue());
          }
      });
      if(lottieAnimationLogo.getProgress() == 0f){
          animator.start();
      }else{
          lottieAnimationLogo.setProgress(0f);
      }
  }
  </code></pre>