title: Navigation drawer - how to define the view hierarchy
body: <p>My android application is enabled with navigation drawer which works fine with the top level views. Now, when I am navigating the lower level view I want the logo to appear with the up arrow to reach the home, I want the navigation drawer to be accessible swiping from the left edge to navigate top level views for the cross navigation, and back to navigate the top level view from where I am reached to the current lower level view.</p>
  
  <p>I gone through the following section where it says the view can navigate back to its parent view. But haven't got the details on how to define a parent fragment of any fragment. Or, is there any way I can define the hierarchy of the views in the navigation drawer?</p>
  
  <p><a href="http://developer.android.com/design/patterns/navigation-drawer.html#ImpactOnNav" rel="nofollow noreferrer">http://developer.android.com/design/patterns/navigation-drawer.html#ImpactOnNav</a></p>
  
  <blockquote>
    <h2>System Back after cross navigation to lower hierarchy levels</h2>
    
    <p>If the user navigates to a lower hierarchy screen from the navigation
    drawer and the screen has a direct parent, then the <strong>Back stack is
    reset and Back points to the target screen’s parent</strong>. This Back
    behavior is the same as when a user navigates into an app from a
    notification.</p>
  </blockquote>
  
  <hr>
  
  <p><img src="https://i.stack.imgur.com/N6qWg.png" alt="enter image description here"></p>
  
  <p>Another option is to call <code>addToBackStack</code> on the fragment transaction which I want to avoid because it is not the recommended practise given in the guidelines, and also for the users who always use navigation drawer to navigate through the views, the app will unnecessarily maintain too many entries in the back stack. </p>
  
  <p>Given the scenarios, any suggestions are welcome.</p>