I have a frame animation that works great with AnimationDrawable. Here he is:
<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="true"> <item android:drawable="@drawable/arrowframes0000" android:duration="50" /> <item android:drawable="@drawable/arrowframes0001" android:duration="50" /> ... <item android:drawable="@drawable/arrowframes0024" android:duration="50" /> <item android:drawable="@drawable/arrowframes0025" android:duration="50" />
I need to be able to cancel this frame animation while it is still playing, and in other circumstances shortly after its completion.
There seems to be no way to do this using AnimationDrawable.
How else can I do this to change the animation in the middle of playback? (and do it again forward in the middle of reverse playback).
source share