Reputation: 249
Can anyone tell me how I can animate different images? I want to animate different image after some time in my app. I am new, so please help me or provide me some working example code.
I want to make a program which rotates the images (i.e. one image loads after that 2nd comes to load, but the loading is done like in games where the background images are changed when the player moves).
Upvotes: 0
Views: 4189
Reputation: 54979
Code from the API
Check these Links too:
http://www.youtube.com/watch?v=b1e17InAx_w
http://developingthedream.blogspot.com/2011/01/android-canvas-frame-by-frame-animation.html
http://developerlife.com/tutorials/?p=343
Upvotes: 3
Reputation: 1030
there are multiple ways of animation... the most basic one is by the use of Animation framework available in Android. All you need to do is define the animations in xml and play animation on different imageviews.
you can get sample in API Demo app.
Upvotes: 1