how to animate activity from center of screen and then spread to full screen
<p>I want to Animate the activty from the center of screen then open full screen . (Like a flower opening).</p>

<p>I have tried this but it slides in.<br>
Start</p>

<pre><code>&lt;translate xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="500"
    android:fromXDelta="50%"
    android:interpolator="@android:anim/accelerate_interpolator"
    android:toXDelta="0%" /&gt;
</code></pre>

<p>End</p>

<pre><code>&lt;translate xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="500"
    android:fromXDelta="0%"
    android:interpolator="@android:anim/accelerate_interpolator"
    android:toXDelta="-100%" /&gt;
</code></pre>

<pre class="lang-java prettyprint-override"><code>Intent detail = new Intent(this, DetailActivity.class);
startActivity(detail);
overridePendingTransition(R.anim.start,R.anim.end);
</code></pre>
