Hi,
I want to implement an animation in a ImageView inside a Dialog, but I can't
get the animation to actually animate.

Some code:
In Dialog.onCreate:
   imageView.setBackgroundResource(R.anim.loading_anim);

And later on in onCreate:
   AnimationDrawable frameAnimation = (AnimationDrawable)
imageView.getBackground();
   frameAnimation.start();

The animation is a simple animation list of 8 images.

I've tested the animation outside the Dialog and it animates properly. The
Android ProgressDialog also has a working animation. Are there special
requirements or set up steps required for animations in Dialogs?

Thanks,
- Jason

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to