title: Animate the transition between fragments
body: <p>I'm trying to animate the transition between fragments. I got the answer from the following<br>
  <a href="https://stackoverflow.com/questions/4817900/android-fragments-and-animation">Android Fragments and animation</a>  </p>
  
  <pre><code>FragmentTransaction ft = getFragmentManager().beginTransaction();
  ft.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_right);
  
  DetailsFragment newFragment = DetailsFragment.newInstance();
  
  ft.replace(R.id.details_fragment_container, newFragment, "detailFragment");
  
  // Start the animated transition.
  ft.commit();
  </code></pre>
  
  <p>And my R.anim.slide_in_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;translate android:fromXDelta="50%p" android:toXDelta="0"
              android:duration="@android:integer/config_mediumAnimTime"/&gt;
         &lt;alpha android:fromAlpha="0.0" android:toAlpha="1.0"
              android:duration="@android:integer/config_mediumAnimTime" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>But when I tried this it showed  </p>
  
  <pre><code>02-08 16:27:37.961: ERROR/AndroidRuntime(1717): FATAL EXCEPTION: main
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717): java.lang.RuntimeException: Unknown animator name: translate
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:129)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:126)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java:93)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java:72)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.app.FragmentManagerImpl.loadAnimator(FragmentManager.java:621)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:733)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:919)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.app.BackStackRecord.run(BackStackRecord.java:578)
  02-08 16:27:37.961: ERROR/AndroidRuntime(1717):     at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1217)
  </code></pre>
  
  <p>Any ideas? When I checked Honeycomb API reference <code>translate</code> is there. What did I miss?<br>
  Is there any other way to animate the transition between fragments?
  Thank you </p>