title: How to use both Fragments and Child Fragments with Navigation Component?
body: <p>I'm making an app using the Navigation Component with Fragments as my individual destinations. I want to know how to implement a navigation flow like this:</p>
  
  <p><a href="https://i.stack.imgur.com/3bBZn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3bBZn.png" alt="enter image description here"></a></p>
  
  <p>In Destination 2, there's a menu button which can open a small menu(doesn't cover the entire screen). Inside the menu(Menu 1), there are other buttons clicking on which, the second menu(Menu 2) replaces the first one. Pressing the back button should move me as follows:</p>
  
  <p>Destination 2(b) -> Destination 2(a) -> Destination 2 -> Destination 1</p>
  
  <p>How do I go about implementing this with the Navigation Component? Just to be clear, the menus appear on top of Destination 2. So, content from both the menus and Destination 2 should be visible.</p>