Android 如何在标题布局上方显示抽屉布局

Android 如何在标题布局上方显示抽屉布局,android,drawerlayout,Android,Drawerlayout,我的主要活动是包含抽屉布局以显示滑动菜单+用于选项卡导航的ViewPager。我隐藏了actionbar,并用一个大的线性布局替换它,以实现actionbar/tabs alternatif以及它们之间包含按钮的布局。 我的xml文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:

我的主要活动是包含抽屉布局以显示滑动菜单+用于选项卡导航的ViewPager。我隐藏了actionbar,并用一个大的线性布局替换它,以实现actionbar/tabs alternatif以及它们之间包含按钮的布局。 我的xml文件:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:orientation="vertical" 
  android:background="@color/light_gray_2"> 

<LinearLayout android:id="@+id/header"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
             >
  <LinearLayout
         android:layout_width="fill_parent"
         android:layout_height="60dp"
         android:background="@color/blue_buzzvibe"
         android:orientation="horizontal" >

         Here title and menu button (ActionBar alternatif)

 </LinearLayout>

 <LinearLayout
   android:id="@+id/options_buttons_campaign"
   android:layout_width="fill_parent"
   android:layout_height="wrap_content"
   android:gravity="center_vertical|center_horizontal" >

     Here 4 layout for buttons

  </LinearLayout>

   <LinearLayout
     android:id="@+id/tabs_layout"
     android:layout_width="fill_parent"
     android:layout_height="wrap_content"
     android:gravity="center_vertical|center_horizontal" >

        Here 2 layout for tabs

   </LinearLayout>

</LinearLayout>
<android.support.v4.widget.DrawerLayout
    android:id="@+id/drawer_layout"
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    android:layout_gravity="start"
    >

  <FrameLayout
    android:id="@+id/fragment_container_main_msg"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    />
   <android.support.v4.view.ViewPager
        android:id="@+id/pager"
        android:layout_width="match_parent"
        android:layout_height="0px"
        android:layout_weight="1"/>
   <!-- Listview to display slider menu -->
   <ExpandableListView
    android:id="@+id/list_slidermenu"
    android:layout_width="300dp"
    android:layout_height="match_parent"
    android:layout_gravity="start"
    android:choiceMode="singleChoice"
    android:dividerHeight="0dp"
    android:divider="@null"   
    android:background="@color/menu_list_background"

    />

</android.support.v4.widget.DrawerLayout>
</LinearLayout>
有了这个xml文件,我的抽屉在大布局下面显示出来了。我想在所有屏幕高度显示抽屉。 这是我的截图
这是我想要的截图

我已经把它藏起来了。我想有可能从任何地方向左滑动以打开menuDarwer,我想保持菜单下方显示的标题布局。像2sd屏幕快照一样,我尝试在抽屉布局中添加标题布局。但标题布局未显示。