What I am trying to achieve is : start a new activity with a transition animation for the exiting activity only.

I would like to slide up the current activity, where the new activity will be behind the current one.

Here is the slide up animation : R.layout.slide_up

<set xmlns:android="http://schemas.android.com/apk/res/android">

    <translate
        android:duration="1000"
        android:fromYDelta="0%"
        android:toYDelta="100%" />

</set>

Here is how I am applying the activity animation transition :

overridePendingTransition ( 0 , R.anim.slide_up );

I am using 0 for the entering activity since I do not want any animation for the new activity, and it is not working (the animation is not performed). If I use an animation for entering activity too, it works (both animations are performed), like such :

overridePendingTransition ( R.anim.slide_out , R.anim.slide_up );

where R.anim.slide_out :

<set xmlns:android="http://schemas.android.com/apk/res/android">

    <translate
        android:duration="1000"
        android:fromYDelta="100%"
        android:toYDelta="0%" />

</set>

Any ideas ?

I am working on Android 4.1.2 and Android 4.0.4

Edit
Report