Transitive Animation From Android 2.2 to latest release
<p>I want to use animation compatible with android version 2.2 to 4.1.2. i tried using xml animation but it does not do not work under ginderbread. can someone tell me if there exist animation from left to right and right to left compatible with all android version and why ?</p>

<p>enter.xml</p>



<p>

<pre><code>     android:shareInterpolator="false"&gt;

    &lt;translate android:fromXDelta="-100%" android:toXDelta="0%"

      android:fromYDelta="0%" android:toYDelta="0%"

     android:duration="2000"/&gt;
</code></pre>

<p></p>

<p>leave.xml</p>



<p>

<pre><code>     android:shareInterpolator="false"&gt;

  &lt;translate

   android:fromXDelta="0%" android:toXDelta="100%"

   android:fromYDelta="0%" android:toYDelta="0%"

   android:duration="2000" /&gt;
</code></pre>

<p></p>

<p>i called it with this method but it isn't compabible with gingerbread</p>

<pre><code>overridePendingTransition(R.anim.leave,R.anim.enter);
</code></pre>
