IntelliJ Java IDE
The moose likes Android and the fly likes How to animate images one after the another in android Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "How to animate images one after the another in android" Watch "How to animate images one after the another in android" New topic
Author

How to animate images one after the another in android

sohaib rahman
Greenhorn

Joined: Jun 01, 2010
Posts: 20
I have three images that depicts the company logo, name and slogan. I want to animate these three images in such a way that a logo appears first, then the name and then the slogan. After these three animations, I want the screen to disappear and display a new activity. How to do this? Please help me.
Johan Pelgrim
Ranch Hand

Joined: Jul 07, 2003
Posts: 100

Hi Sohaib,

The ViewFlipper is what you need (Google for some examples, they're out there!). Set the android:autoStart attribute to true to start the animation when the ViewFlipper is displayed...

Good luck!

Johan


Johan Pelgrim, The Netherlands
SCJP 1.4, SCWCD 1.4, SCBCD 5.0
Johan Pelgrim
Ranch Hand

Joined: Jul 07, 2003
Posts: 100

Hi Sohaib,

Come to think of it. What you describe here is probably some kind of splash-screen? Unless you are doing some heavy background initialization I would advise against a splash-screen. Simply start your app as quickly as possible and present the user with the activity to perform the task they they downloaded and installed your app for in the first place. You can do the company logo animation bit in an about screen or something...

Again, good luck!

Johan
sohaib rahman
Greenhorn

Joined: Jun 01, 2010
Posts: 20
Thanks Johan!
 
 
subject: How to animate images one after the another in android
 
Threads others viewed
When do we get the logo from Sun
How long to wait?
Animating an object between two points
Question about SCJP logos
Circular motion.......
MyEclipse, The Clear Choice