title: Navigate with BottomNavigationView inside fragment (not activity) using navigation component and navigation graph
body: <p>I have a single <code>Activity</code> application. I created a single <code>Navigation graph</code> containing all the possible destinations (<code>Fragment</code>).</p>
  
  <p>The <code>Activity</code> <code>layout</code> only contains a <code>&lt;fragment/&gt;</code> container as it should be.</p>
  
  <p>There is a main Fragment containing a <code>BottomNavigationView</code> where the user can navigate to all the important destinations (3 of them).</p>
  
  <p>When I implement the <code>BottomNavigationView</code> as described in many tutorials or event in the official documentation, it replaces the full content of the <code>Activity</code>. Therefore, the <code>BottomNavigationView</code> is no more displayed as it is contained in a <code>Fragment</code> and not in the <code>Activity</code>. I want it to inflate the right <code>layout</code> in the main Fragment.</p>
  
  <p>Should I use another <code>Navigation graph</code>, specific for the main Fragment ?
  Should I use a classic <code>Listener</code> (But I will loose all the interest of using a <code>Navigation graph</code>) ?
  Is there a solution I don't know ?</p>
  
  <p>How do I implement it ? I tried to create two different <code>Navigation graph</code>, but I can not set it to my <code>BottomNavigationView</code></p>