So you have finally succeeded in creating an animation transition in Android from one Activity to the next. But then, you noticed that when that happens, there is a short blackout of a black background then displaying the animation of the next Activity you want to display.

Problem then is, how do you hold the first Activity intact so the second Activity will animate and overlap the first Activity? I have sifted through numerous forums and I have found no solution to that programmatically. If you have a solution, do feel free to post a comment here.

The workaround hack I found is to create a dummy animation XML file with a delay attribute in it so that the first Activity will stay still while the second Activity does its animated transition.

The android:duration attribute is the delay that I was talking about earlier. This value is in milliseconds so the value 2000 means 2 seconds and using this will make the first Activity stay still for 2 seconds. You can change it to any value you want.

Related Posts Plugin for WordPress, Blogger...