title: How to set translate animation for fragment?
body: <p>I am using a custom animation for Fragments transactions in my application but I get an application force close with this error in gradle:</p>
  
  <pre><code>03-05 22:25:58.185 14497-14497/ir.aftabeshafa.shafadoc E/AndroidRuntime: FATAL EXCEPTION: main
  Process: ir.aftabeshafa.shafadoc, PID: 14497
  java.lang.RuntimeException: Unknown animator name: translate
  at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java)
  at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java)
  at android.animation.AnimatorInflater.createAnimatorFromXml(AnimatorInflater.java)
  at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java)
  at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java)
  at android.animation.AnimatorInflater.loadAnimator(AnimatorInflater.java)
  at android.app.FragmentManagerImpl.loadAnimator(FragmentManager.java)
  at android.app.FragmentManagerImpl.moveToState(FragmentManager.java)
  at android.app.FragmentManagerImpl.removeFragment(FragmentManager.java)
  at android.app.BackStackRecord.run(BackStackRecord.java)
  at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java)
  at android.app.FragmentManagerImpl$1.run(FragmentManager.java)
  at android.os.Handler.handleCallback(Handler.java)
  at android.os.Handler.dispatchMessage(Handler.java)
  at android.os.Looper.loop(Looper.java)
  at android.app.ActivityThread.main(ActivityThread.java)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
  </code></pre>
  
  <p><em>slideinanimation.xml</em> :</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="false"&gt;
      &lt;translate
          android:duration="700"
          android:fromXDelta="0%"
          android:fromYDelta="-100%"
          android:toXDelta="0%"
          android:toYDelta="0%" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>and <em>slideoutanimation.xml</em>:</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="false"&gt;
      &lt;translate
          android:duration="700"
          android:fromXDelta="0%"
          android:fromYDelta="0%"
          android:toXDelta="0%"
          android:toYDelta="-100%" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>How can I fix this?</p>