title: Android Fragment Translate Animation Not Working
body: <p>I'm trying to do a simple translate animation for two fragments. One comes in from the right while the other goes out to the left. My min SDK is 14. What happens is the transition takes place, but without the actual animation. After the time specified in the animation xml, the fragments just swap. So the animation time is being respected, but there is no actual translation.</p>
  
  <p>My fragment animation code is:</p>
  
  <pre><code>FragmentManager fragmentManager = getFragmentManager();
  FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
  fragmentTransaction.setCustomAnimations(R.animator.enter_from_right, R.animator.exit_to_left);
  fragmentTransaction.replace(android.R.id.content, termsFragment);
  fragmentTransaction.commit();
  fragmentManager.executePendingTransactions();
  </code></pre>
  
  <p>My animation xml files are (enter_from_right):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;objectAnimator
      android:interpolator="@android:anim/accelerate_decelerate_interpolator"
      android:fromXDelta="100%"
      android:toXDelta="0%"
      android:duration="1000" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>and exit_to_left:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;objectAnimator
      android:interpolator="@android:anim/accelerate_decelerate_interpolator"
      android:fromXDelta="0%"
      android:toXDelta="-100%"
      android:duration="1000"/&gt;
  &lt;/set&gt;
  </code></pre>