Skip to main content
You're viewing documentation for a previous version of this software.Switch to the latest stable version

Activity transition animation

To add a transition animation between activities you have to define an animation style:

<style name="MyAnimation.Window" parent="@android:style/Animation.Dialog">
<item name="android:windowEnterAnimation">@anim/transition_animation</item>
<item name="android:windowExitAnimation">@anim/transition_animation</item>

This style uses a custom animation like the following (transition_animation.xml):

<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="">

Now you have to add the animation style to the theme you are using:

<item name="android:windowAnimationStyle">@style/MyAnimation.Window</item>