title: How can I use Fragments to open items on a Drawerlayout, when i used the Activity Drawer Navigation Template that provides android studio?
body: <p><strong>Template that provide Android Studio</strong></p>
  
  <p><a href="https://i.stack.imgur.com/S2nta.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S2nta.png" alt="Template"></a></p>
  
  <p>This is how I try to do. What is the R.id.x?. I tried using layout id in xml ActivityMain but not the fragment is displayed or overlaid with out activity information.</p>
  
  <p><a href="https://i.stack.imgur.com/hUo9f.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hUo9f.png" alt="Add fragment"></a></p>
  
  <p>After selecting one of the items, the fragment will be displayed above the activity. The activity has several elements belonging to material design as the FAB or the Toolbar, Could this create problems with what I do?</p>
  
  <p><a href="https://i.stack.imgur.com/fXd8g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fXd8g.png" alt="Navigation Drawer"></a></p>