Problem: Shows only the first element in the animation-list.
Animation list drawable file in res/drawable:
<?xml version="1.0" encoding="utf-8"?>
<animation-list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="false" >
<item
android:drawable="@drawable/k2si"
android:duration="1000"/>
<item
android:drawable="@drawable/android"
android:duration="1000"/>
</animation-list>
Starting the animation:
ImageView image = (ImageView) findViewById(R.id.imageView1);
image.setBackgroundResource(R.drawable.screensaver_image);
((AnimationDrawable) image.getBackground()).start();
Documentation (scroll to Frame animation)
Check this thread: [Click here](https://stackoverflow.com/a/56348279/9475689) – AndroWaqar May 28 '19 at 18:42