Milon
Milon

Reputation: 2249

sliding menu over tab and fragment

Working with slidingmenu and actionbarsherloc. I want to show slidingmenu in left above the tab navigation and below the actionbar. As i want actiobar will remain fixed and tab and fragment will go aside to give room sliding menu. Is it possible with these duo??? Here is my code.

    menu = new SlidingMenu(this);
    menu.setMode(SlidingMenu.LEFT);
    menu.setTouchModeAbove(SlidingMenu.LEFT);
    menu.setShadowWidthRes(R.dimen.slidingmenu_shadow_width);
    menu.setShadowDrawable(R.drawable.menu_shadow);
    menu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
    menu.setFadeDegree(0.9f);
    menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
    menu.setMenu(R.layout.menu_frame);

Upvotes: 0

Views: 787

Answers (1)

Martin Ohlin
Martin Ohlin

Reputation: 494

The tabs are part of the Action Bar and therefore it is not possible to do what you want using that component. It is however possible if you use the library ViewPagerIndicator to display the tabs instead.

Upvotes: 1

Related Questions