the animation is not work
<p>i have made the following animation xml file in my android project:</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 = "true"
android:interpolator="@android:anim/linear_interpolator"&gt;
&lt;scale
 android:fromXScale = "1.0"
 android:toXScale = "0.0"
 android:pivotX="50%"
 android:pivotY="50%"
 android:duration="40000"&gt; 
 &lt;/scale&gt;
 &lt;/set&gt;
</code></pre>

<p>what this is basically doing is making a view dissappear starting from its center.</p>

<p>Now in my code i am doing the following to start the animation:</p>

<pre><code>overridePendingTransition (0,R.anim,myanimation);
</code></pre>

<p>but nothing is happening.</p>

<p>what am i doing wrong?</p>

<p>thank you in advance.</p>
