title: Navigation between fragments on a tabbed ActionBar
body: <p>As far as I have been looking around, I have come up with no good final solution for my code. I am trying to implement something like this layout:</p>
  
  <p>ActionBar</p>
  
  <pre><code> ----Tab 1 ---Fragment 1 - Fragment 2
   ----Tab 2 ---Fragment 3 - Fragment 4
   ----Tab 3 ---Fragment 5 - Fragment 6
  </code></pre>
  
  <p>My problem is that when I access Fragment 2 from Fragment 1, two things may happen depending the implementation. A)Content from fragment 1 is still on screen. B)When I access Tab 2 from Fragment 2, content from Fragment 2 is still visible and, when I press again Tab1, content from Tab2 is still on screen.</p>
  
  <p>I know it may not make complete sense, but I've tried nested fragments implementation, and some custom backstack implementations, but I can't get to understand how to make this right.</p>
  
  <p>To be more precise, I can't "come back" properly from Fragment 2 to Fragment 1.
  I can't switch to Tab2 from Fragment 2 and then go back to Tab1 (Fragment1).</p>
  
  <p>Can anyone help me? The implementation of the actionbar with three simple fragments (no inner fragments) worked perfectly.</p>
  
  <p>Here are some of my previous inputs:</p>
  
  <ul>
  <li><a href="https://github.com/commonsguy/cw-omnibus/blob/master/ViewPager/Fragments/src/com/commonsware/android/pager/EditorFragment.java" rel="nofollow noreferrer">https://github.com/commonsguy/cw-omnibus/blob/master/ViewPager/Fragments/src/com/commonsware/android/pager/EditorFragment.java</a></li>
  <li><a href="https://stackoverflow.com/questions/10025171/how-to-navigate-in-fragments">How to navigate in fragments?</a></li>
  <li><a href="https://stackoverflow.com/questions/10502786/switching-fragments-within-tab">Switching fragments within tab</a></li>
  </ul>