title: Trouble with animating fragment transaction animation
body: <p>I am having some trouble trying to set custom animation to my fragment transaction. I know there are several treads on this and I have tried all their soluction and I still cant get this to work. Here are the animation xml files:</p>
  
  <p>slide.down.xml(for exit)</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;
  </code></pre>
  
  <p></p>
  
  <p>slide_up.xml(for entering)</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;      
  </code></pre>
  
  <p></p>
  
  <p>and my fragment transaction code:</p>
  
  <pre><code>getFragmentManager().beginTransaction()
                              .setCustomAnimations(R.anim.slide_up , R.anim.slide_down,R.anim.slide_up , R.anim.slide_down)
                              .replace(R.id.container, list)
                              .addToBackStack(null)
                              .commitAllowingStateLoss();
  </code></pre>
  
  <p>All the solutions form other similar threads I have tried: </p>
  
  <ul>
  <li>Made sure <code>setCustomAnimations</code> is before <code>replace</code></li>
  <li>Have set <code>android:hardwareAccelerated</code> to true in the Manifest.</li>
  <li>Made sure animations are not disabled in the developer options on my test device </li>
  </ul>
  
  <p>I seem to be messing something very obvious and important but I cant figure out what that is.</p>
  
  <p>My question: Why doesn't my costume animation work and how do I get it to work ? </p>