title: how to add DrawerLayout to my mainActivity.xml in android
body: <p>Now my mainActivity.xml file like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="#FFFFFF"
                android:orientation="vertical"&gt;
  
      &lt;include layout="@layout/title_bar" /&gt;
      &lt;FrameLayout android:id="@+id/tab_content"
                   android:layout_width="match_parent"
                   android:layout_height="0dp"
                   android:layout_weight="1" /&gt;
  
      &lt;include layout="@layout/bottom_bar" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>this page has four tabs on the bottom,each tab is associated with a different fragment which will be added to android:id="@+id/tab_content".</p>
  
  <p><strong>Here is my questions,how to add DrawerLayout to the mainActivity.xml and only allow the first fragment to open the drawer layout.</strong></p>