title: Android: orientation change animation
body: <p>I am struggling with using custom animation for the orientation change on Android. Basically what i want to do is, that whenever user rotates the phones, the new screen in landscape mode will slide in from the right to left. 
  I found a similar topic (http://stackoverflow.com/questions/6043730/android-animation-on-orientation-change) unfortunately it does not asnwer my question. 
  The animation is defined as follows :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android" 
     android:interpolator="@android:anim/accelerate_interpolator"&gt;
     &lt;translate android:fromXDelta="100%p"
        android:toXDelta="0"
        android:duration="550" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>For applying the animation I used:</p>
  
  <pre><code>overridePendingTransition(R.anim.slide_right, 0);
  </code></pre>
  
  <p>Either directly after:</p>
  
  <pre><code>startActivity(...);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>super.onCreate();
  </code></pre>
  
  <p>Unfortunately none of them worked. The animation works fine whenever I make transition between activities while staying in portrait mode, but whenever I try to use when I move from portrait to landscape - it does not work.
  I will really appreciate your help !</p>