title: Android Activity Transition Animation
body: <p>What I am trying to achieve is : start a new activity with a transition animation for the exiting activity <strong>only</strong>.</p>
  
  <p>I would like to slide up the current activity, where the new activity will be behind the current one.</p>
  
  <p>Here is the slide up animation : <strong>R.layout.slide_up</strong></p>
  
  <p></p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;translate
          android:duration="1000"
          android:fromYDelta="0%"
          android:toYDelta="100%" /&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p>Here is how I am applying the activity animation transition :</p>
  
  
  
  <pre><code>overridePendingTransition ( 0 , R.anim.slide_up );
  </code></pre>
  
  <p>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 :</p>
  
  <pre><code>overridePendingTransition ( R.anim.slide_out , R.anim.slide_up );
  </code></pre>
  
  <p>where <strong>R.anim.slide_out</strong> :</p>
  
  <p></p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;translate
          android:duration="1000"
          android:fromYDelta="100%"
          android:toYDelta="0%" /&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p>Any ideas ?</p>
  
  <p>I am working on Android 4.1.2 and Android 4.0.4</p>