So I have a ActivityGroup, and I would like to animate the transition between its child activities. Right now I have a “slide in from left” animation in XML that I am loading via AnimationUtils.LoadAnimation.
However this just animates the incoming activity. I would like to slide the current activity out on the left side simultaneously. I have been able to accomplish this with a ViewFlipper, but for this project it doesn’t make sense to use this method.
What are my options?
ActivityGroup is deprecated. You should be using Fragments instead. Animating fragments is easy. Just use the setTransition function when changing between them. If you’re developing for an API Level that’s less than 11, use the Android Support Package.