title: Zoom out Transition animation between two activities
body: <p>I checked out the transition animation that comes with API code and i found animation zoom_enter and zoom_exit in which activity 1 sinks IN to show activity 2. I need the other way round. I need activity 2 to zoom out from inside and come on top. (I hope you are getting me). This type of animation is the same on iphone screen transition.</p>
  
  <p>The code below is what i have for the effect that i don't need.
  Here is the code for zoom_enter.xml</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:interpolator="@android:anim/decelerate_interpolator"&gt;
      &lt;scale android:fromXScale="2.0" android:toXScale="1.0"
         android:fromYScale="2.0" android:toYScale="1.0"
         android:pivotX="50%p" android:pivotY="50%p"
         android:duration="@android:integer/config_mediumAnimTime" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>And here is the code for zoom_exit.xml</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:interpolator="@android:anim/decelerate_interpolator"
      android:zAdjustment="top"&gt;
      &lt;scale android:fromXScale="1.0" android:toXScale=".5"
         android:fromYScale="1.0" android:toYScale=".5"
         android:pivotX="50%p" android:pivotY="50%p"
         android:duration="@android:integer/config_mediumAnimTime" /&gt;
      &lt;alpha android:fromAlpha="1.0" android:toAlpha="0"
          android:duration="@android:integer/config_mediumAnimTime"/&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>Then right after startActivity i call the method below:</p>
  
  <pre><code> overridePendingTransition(R.anim.zoom_enter, R.anim.zoom_exit);
  </code></pre>
  
  <p>Can anyone suggest how i can make changes to the above files to have the screen transition i explained?</p>