Soon, I have a slide menu, and I want it to display only the menu when the user clicks the menu button, rather than moving left → right (or right to left).
My menu configuration looks like this:
SlidingMenu sm = getSlidingMenu();
sm.setMode(SlidingMenu.LEFT); // or sm.setMode(SlidingMenu.RIGHT);
sm.setBehindOffsetRes(R.dimen.slidingmenu_offset);
sm.setShadowWidthRes(R.dimen.shadow_width);
sm.setShadowDrawable(R.drawable.shadow);
sm.setBehindScrollScale(0.25f);
sm.setFadeDegree(0.25f);
I do not see any configurations to prevent the sliding menu. Please, could you tell me how can I do this?
Thanks in advance.
source
share