views:

59

answers:

1

My app's main screen is a listview in portrait mode. When it is in landscape orientation it switches to an ImageView. I want to be able to animate a fading transition when I switch orientations. How can I go about doing this?

+1  A: 

I found a similar question: http://stackoverflow.com/questions/2597329/how-to-do-a-fadein-of-an-image-on-an-android-activity-screen

that has the solution. Just need to make sure the animation is performed after the UI is mapped to the XML. Android kills the activity every time you rotate, so best place is onStart() or onCreate()

Sheehan Alam