ok...i have got a simple animation working in this..

public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);

                setContentView(R.layout.frame_animations_layout);
                imgView = (ImageView)findViewById(R.id.imageView);
                imgView.setBackgroundResource(R.drawable.frame_animation);

in onCreate i have the above..

then later i have

frameAnimation = (AnimationDrawable) imgView.getBackground();
                                frameAnimation.start();


which shows the animation!

but..there always is a but

i want to show maybe 5-6 animations..depending on events..how would i
go about doing this? i have tried changing the
"imgView.setBackgroundResource(R.drawable.frame_animation1);" in my
code at a later stage but it doesn't change the resource for me, is
this even possible?

Thanks,

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

Reply via email to