title: Android animation imageview 1st rotate and then fadeout for splash
body: <p>I am trying to make a splash screen for my Android app. I have found many answer related to this question. but none of those worked correctly. I just want to 
  1. first fade_in an imageView, then rotate and then  fade_out
  or 2. all at the same time. I have tried these code</p>
  
  <pre><code>    final ImageView iv = (ImageView) findViewById(R.id.imageView);
      final Animation an = AnimationUtils.loadAnimation(getBaseContext(),R.anim.animate);
  
      iv.startAnimation(an);
      an.setAnimationListener(new Animation.AnimationListener() {
          @Override
          public void onAnimationStart(Animation animation) {}
  
          @Override
          public void onAnimationEnd(Animation animation) {
              finish();
              Intent i = new Intent(getBaseContext(),Welcome.class);
              startActivity(i);
          }
  
          @Override
          public void onAnimationRepeat(Animation animation) {}
      });
  </code></pre>
  
  <p>and in animate xml</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;set xmlns:android="http://schemas.android.com/apk/res/android" android:fillAfter="true"&gt;
  
  &lt;rotate
      android:duration="10000"
      android:fromDegrees="0"
      android:toDegrees="360"
      android:pivotX="50%"
      android:pivotY="50%"
      /&gt;
  
  &lt;alpha
      android:fromAlpha="1.0"
      android:toAlpha="0.0"
      android:interpolator="@android:anim/accelerate_interpolator"
      android:duration="5000"/&gt;
  &lt;alpha
      android:fromAlpha="0.0"
      android:toAlpha="1.0"
      android:interpolator="@android:anim/accelerate_interpolator"
      android:duration="5000"/&gt;
  
  &lt;/set&gt;
  </code></pre>