title: Show fragment when menu item is clicked in new NavigationView
body: <p>I am a beginner using Android Studio to create an app and when I click a navigation menu item I want to show a different fragment. I have searched tutorials but I have not found how to use it.</p>
  
  <p>For example, in the template, when I click camera it should show a camera fragment, gallery would show a gallery fragment, and so on:</p>
  
  <pre><code>public boolean onNavigationItemSelected(MenuItem item) {
      // Handle navigation view item clicks here.
      int id = item.getItemId();
  
      if (id == R.id.nav_camara) {
          // Handle the camera action
          // How do I display fragment?
      } else if (id == R.id.nav_gallery) {
  
      } else if (id == R.id.nav_slideshow) {
  
      } else if (id == R.id.nav_manage) {
  
      } else if (id == R.id.nav_share) {
  
      } else if (id == R.id.nav_send) {
  
      }
  </code></pre>