1

Issues creating multiple instances of Androids AnimationDrawable class

view story
linux-howto

http://stackoverflow.com – Overview: When I call AnimationDrawable.stop() on one instance of an object it stops all other instances' animations as well. Details: I have an animation broken up frame-by-frame into PNG images in my resources ("res") folder. I load an AnimationDrawable with the images. This is done in the OnCreate Function of a SurfaceView like so: animation = new AnimationDrawable(); animation.setOneShot(false); animation.addFrame(loadDrawable(this, R.drawable.frame0), frameLength); animation.addFrame(loadDrawable(this, R.drawable.frame1), frameLength); anim (HowTos)