title: How to add static Fragments in Android activity
body: <p>Trying to create Facebook / Gmail style <a href="https://stackoverflow.com/a/8673805/2359488">Sliding Navigation Drawer</a>. All I want is to create separate Fragments in XML, and show them when user clicks one of the list items from Drawer Menu. Each Fragment hooked up to one item in the list. </p>
  
  <p><a href="https://developer.android.com/training/implementing-navigation/nav-drawer.html" rel="nofollow noreferrer">NavigationDrawer</a> is great example app to start with, but it only demos loading fragment dynamically. I want even simpler, just loading those statically. How should (Code snippet please) I be instantiating Fragments within my activity on List menu item click? How would MainActivity XML look like ?</p>
  
  <p><img src="https://i.stack.imgur.com/VoZUf.png" alt="Fragment 2"></p>
  
  <p><img src="https://i.stack.imgur.com/vJw7g.png" alt="Fragment 3"></p>