<ImageView
android:id="@+id/img_flip_up"
android:layout_width="50dp"
android:layout_height="50dp"
android:src="@drawable/flip_up"
android:contentDescription="flip_up" />
flip_up.xml
<?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/icon1" android:duration="150"></item>
<item android:drawable="@drawable/icon2" android:duration="150"></item>
<item android:drawable="@drawable/icon3" android:duration="150"></item>
<item android:drawable="@drawable/icon4" android:duration="150"></item>
<item android:drawable="@drawable/icon5" android:duration="150"></item>
<item android:drawable="@drawable/icon6" android:duration="150"></item>
</animation-list>
val mLoadingAnimationDrawable = binding.forwardAndBackward.imgFlipUp.drawable as AnimationDrawable
mLoadingAnimationDrawable.start()
|