android transition
<p>I am using the following code to set an animation between 2 images for my SplashScreen:</p>

<p>public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);</p>

<pre><code>    setContentView(R.layout.splash);

     // Show A Transitions for Splash image here.
    TransitionDrawable transition = (TransitionDrawable) getResources()
            .getDrawable(R.drawable.splash_animation);



    //Set interval for the transition between two image.
    transition.startTransition(5000);

    //Fetch imageView from your layout and apply transition on the same.

    ImageView imageView= (ImageView) findViewById(R.id.splash_image);
    imageView.setImageDrawable(transition);

}
</code></pre>

<p>My splash.xml is :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" &gt;

&lt;ImageView
android:scaleType="fitXY"
android:id="@+id/splash_image"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/img_1" /&gt;


&lt;/RelativeLayout&gt;
</code></pre>

<p>My splash_animation.xml file is :</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;transition xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:drawable="@drawable/img_1"&gt;&lt;/item&gt;
  &lt;item android:drawable="@drawable/img_2"&gt;&lt;/item&gt;
&lt;/transition&gt;
</code></pre>

<p>The transition is working fine but I wanted to know if it is possible to create it for 3 images as well. I tried adding a third image in splash_animation but the transition is only done for the first image. How can I achieve it for as many images as I want?</p>
