Question

Help needed!

I have 10 different .png files and i want to display them on my main.xml file one by one after a certain amount of delay.

The order should be: 1 --> 2 --> 3 --> 4 --> 5 --> 6 --> 7 -->8 --> 9 --> 10 --> 1 (the files are located in the drawable folder and are named as android1 , android2, android3, android4...etc)

Also i have 9 Image Buttons on half of my display. the upper half of the display remains free and this is the place i want to place my photos.

NOTE: The above order should again be invoked whenever i press the back button after getting out of any one of my 9 Image Buttons.

Thanks :)

Was it helpful?

Solution

AnimationDrawable may be useful for you. I enclose a link that shows how to use it. It's really simple: http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top