SlidingMenu
SlidingMenu copied to clipboard
How to change secondary menu behind offset?
Hi, I would like to know how to set a different offset for the secondary menu.
Thanks in advance.
This is not difficult, try this:
mSlidingMenu = getSlidingMenu();
mSlidingMenu.setMode(SlidingMenu.LEFT_RIGHT);
mSlidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
mSlidingMenu.setShadowWidthRes(R.dimen.shadow_width);
mSlidingMenu.setShadowDrawable(R.drawable.shadow);
mSlidingMenu.setBehindOffsetRes(R.dimen.slidingmenu_offset);
mSlidingMenu.setFadeDegree(0.35f);
mSlidingMenu.setMenu(R.layout.slidingmenu_left);
mSlidingMenu.setSecondaryMenu(R.layout.slidingmenu_right);
mSlidingMenu.setSecondaryShadowDrawable(R.drawable.shadowright);
@shawnlinboy Thanks, I have done that already. What i would like to accomplish is how to set a different behind offset for the right menu. On your example the behind offset its set for both menus.
hello asolis90, did you found a fix for this issue ?
how to set a different behind offset for the right menu?