title: Android FragmentTransaction Custom Animation (Unknown Animator Name: Translate)
body: <p>I'm trying to get a custom animation to work with my fragment.</p>
  
  <p>I've followed the online tutorials but I've been getting the below error:</p>
  
  <p><strong>java.lang.RuntimeException: Unknown animator name: translate</strong></p>
  
  <p>The XML for the animation is below:</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="100%"
      android:toXDelta="0"
      android:duration="300" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>The Java file is shown below:</p>
  
  <pre><code>public void goCategory(View v) {        
      FragmentTransaction ft = fm.beginTransaction();     
      ft.setCustomAnimations(R.animator.anim_in_left, R.animator.anim_out_left);              
      ft.show(fragment);
      ft.commit();
  }
  </code></pre>
  
  <p>I'm having trouble understanding the solutions in the other threads.
  If someone could dumb it down for me, I'd really appreciate it.</p>