Sliding menu sliding to full screen android with sliding menu library



I am using Sliding menu library. When sliding the screen entire activity layout going to right side. But I want to fix the header at top and only need to go the remaining part. My Sliding screen code is



setBehindContentView(R.layout.sliding_screen);
menu = getSlidingMenu();

menu.setMode(SlidingMenu.LEFT);
menu.setShadowWidthRes(R.dimen.shadow_width);
// menu.setShadowDrawable(R.drawable.ic_launcher);
menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
menu.setFadeDegree(0.35f);
setSlidingActionBarEnabled(true);


and I am included the header in layout



<include
android:id="@+id/include1"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
layout="@layout/header_layout" />


screen shot


No comments:

Post a Comment