title: Nested Fragments and The Back Stack
body: <p>Does the Back Stack support interaction with nested Fragments in Android?  </p>
  
  <p>If it does, what am I doing wrong?  In my implementation, the back button is completely ignoring the fact that I added this transaction to the back stack.  I'm hoping it is not because of an issue with nested fragments and just me doing something incorrectly.</p>
  
  <p>The following code is inside of one of my fragments and is used to swap a new fragment with whatever nested fragment is currently showing:</p>
  
  <pre><code>     MyFragment fragment = new MyFragment();
       FragmentTransaction ft = getChildFragmentManager().beginTransaction();
       ft.setCustomAnimations(R.animator.slide_in_from_right, R.animator.slide_out_left, R.animator.slide_in_from_left, R.animator.slide_out_right);
       ft.addToBackStack(null);
       ft.replace(R.id.myFragmentHolder, fragment);
       ft.commit();
  </code></pre>