title: Android - Hold Activity During Animation
body: <p>I want to create an animation transition in Android from one Activity to the next. But during the animation, there is a short blackout of a black background then displaying the animation of the next Activity I want to display.</p>
  
  <p><strong>I want hold the first Activity intact so the second Activity will animate and overlap the first Activity.</strong> How can I achieve this behaviour?</p>
  
  <p>Here are my two current animation xml files, which aren't doing what i want to achieve:</p>
  
  <p><em>hold.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="false" &gt;
  
      &lt;translate
          android:duration="2000"
          android:zAdjustment="bottom" /&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p><em>enter.xml</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="false" &gt;
  
      &lt;translate
          android:duration="2000"
          android:fromXDelta="90%"
          android:fromYDelta="0%"
          android:toXDelta="0%"
          android:toYDelta="0%"
          android:zAdjustment="top" /&gt;
  
  &lt;/set&gt;
  </code></pre>
  
  <p>My Java-Code:</p>
  
  <pre><code>starter.overridePendingTransition(R.anim.enter,
                  R.anim.hold);
  </code></pre>
  
  <p>Thank you in advance,
  Pat</p>