Tuesday 15 May 2012

android - How to display DrawerLayout above HeaderLayout -



android - How to display DrawerLayout above HeaderLayout -

my mainactivity containing drawerlayout display sliding menu + viewpager tabs navigation. i've hided actionbar , replace big linearlayout implement actionbar/tabs alternatif , layout containing button between them. xml file:

<?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 , 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 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 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 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>

with xml lyaout drawer display bellow big layout. , want display drawer in screen height. here screenshot of have http://i.imgur.com/4oz9p7e.png?1 , here screenshot of want http://i.imgur.com/v65p7gm.png?1

android drawerlayout

No comments:

Post a Comment