Nothing comes to the screen. The individual pngs render fine. what is wrong?
<ImageButton
android:id="@+id/btn_loading"
android:src="@drawable/loading_animation"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
And next is the file “loading_animation.xml” :
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false"
android:repeatMode="repeat" >
<item android:drawable="@drawable/load0" android:duration="20" />
<item android:drawable="@drawable/load1" android:duration="20" />
<item android:drawable="@drawable/load2" android:duration="20" />
<item android:drawable="@drawable/load3" android:duration="20" />
<item android:drawable="@drawable/load4" android:duration="20" />
<item android:drawable="@drawable/load5" android:duration="20" />
<item android:drawable="@drawable/load6" android:duration="20" />
<item android:drawable="@drawable/load7" android:duration="20" />
<item android:drawable="@drawable/load8" android:duration="20" />
</animation-list>
You have to start the animation
Use the following code in your java code