title: How do I create the Marshmallow open activity animation?
body: <p>I am writing a launcher.
  How do I start an activity to show the Marshmallow animation?</p>
  
  <p>I have looked at the AOSP Launcher3 source and only found it to use this:</p>
  
  <pre><code> if (useLaunchAnimation) {
              ActivityOptions opts = Utilities.isLmpOrAbove() ?
                      ActivityOptions.makeCustomAnimation(this, R.anim.task_open_enter, R.anim.no_anim) :
                      ActivityOptions.makeScaleUpAnimation(v, 0, 0, v.getMeasuredWidth(), v.getMeasuredHeight());
              optsBundle = opts.toBundle();
          }
  </code></pre>
  
  <p>Which then get fed into</p>
  
  <pre><code>startActivity(context, optsBundle);
  </code></pre>
  
  <p>Where the task_open_enter animation looks like this:</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:background="#ff000000"
      android:shareInterpolator="false"
      android:zAdjustment="top"&gt;
      &lt;alpha
          android:duration="167"
          android:fillAfter="true"
          android:fillBefore="true"
          android:fillEnabled="true"
          android:fromAlpha="0"
          android:interpolator="@interpolator/decelerate_quart"
          android:startOffset="0"
          android:toAlpha="1.0" /&gt;
      &lt;translate
          android:duration="417"
          android:fillAfter="true"
          android:fillBefore="true"
          android:fillEnabled="true"
          android:fromYDelta="110%"
          android:interpolator="@interpolator/decelerate_quint"
          android:startOffset="0"
          android:toYDelta="0" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>Unfortunately these are not the same as the Marshmallow animation I am looking for, as shown below:</p>
  
  <p>(gif is slowed down 3 times)</p>
  
  <p><a href="https://i.stack.imgur.com/X14cG.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X14cG.gif" alt="Marshmallow Open Activity Animation"></a></p>