title: How to slide Activity with Animation Effect in Android?
body: <p>I am working on an Android app. I want to implement such animation on activity that if we leave <code>activity A</code> then it should slide to left and new <code>activity B</code> should slide in from right. And again when I leave current <code>activity B</code> it should slide to right as well and previous <code>activity A</code> should slide in from Left to Right. How is that possible ?</p>
  <p>By the way I am using following code but it doesn't do anything..</p>
  <p><code>overridePendingTransition(R.anim.slide_left_in, R.anim.slide_left_out);</code></p>
  <p>I have written some XML code for Animation slides as below :</p>
  <p><em><strong>slide_left_in.xml :</strong></em></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;set xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; &gt;
  
      &lt;translate
          android:fromXDelta=&quot;-100%p&quot;
          android:toXDelta=&quot;0&quot;
          android:duration=&quot;@android:integer/config_shortAnimTime&quot; /&gt;
  &lt;/set&gt;
  </code></pre>
  <p><em><strong>slide_left_out.xml :</strong></em></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;set xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  
      &lt;translate
          android:fromXDelta=&quot;0&quot;
          android:toXDelta=&quot;-100%p&quot;
          android:duration=&quot;@android:integer/config_shortAnimTime&quot; /&gt;
  
  &lt;/set&gt;
  </code></pre>
  <p>Your Help would be appreciate.
  Thank you!</p>