title: Android pop fragment from backstack with animation
body: <p>I have an activity that loads a Fragment A in it. Fragment A contains ListView and when clicking on list item I load another Fragment B in place of Fragment A to show the listview item details. On button click and pressing device back button I it loads the previous fragment which is Fragment A that shows ListView. All this is working fine but I want to load Fragment A with animation on backpress or on button click. I am doing it in this way but not working:</p>
  
  <pre><code>   FragmentManager fsm = getSupportFragmentManager();
     FragmentTransaction ftransaction = fsm.beginTransaction();                   
     ftransaction.setCustomAnimations(R.anim.enter_from_left, R.anim.enter_from_left);        
     fsm.popBackStack();
     ftransaction.commit();
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
      android:shareInterpolator="false" &gt;
  
      &lt;translate
       android:duration="700"
       android:fromXDelta="-100%"
       android:fromYDelta="0%"
       android:toXDelta="0%"
       android:toYDelta="0%" /&gt;
  &lt;/set&gt;
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
    android:shareInterpolator="false" &gt;
  
    &lt;translate
      android:duration="700"
      android:fromXDelta="-100%"
      android:fromYDelta="0%"
      android:toXDelta="0%"
      android:toYDelta="0%" /&gt;
  
  &lt;/set&gt;
  </code></pre>