SlidingMenu icon indicating copy to clipboard operation
SlidingMenu copied to clipboard

setMenu method can't work

Open LixamWei opened this issue 10 years ago • 1 comments

The code as follow: // configure the SlidingMenu menu = new SlidingMenu(this); menu.setMode(SlidingMenu.LEFT); menu.setMenu(R.layout.menu_frame);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); menu.setBehindOffset(100); menu.setFadeDegree(0.35f); menu.attachToActivity(this, SlidingMenu.SLIDING_WINDOW);

But the method setMenu did't work.The layout of menu is empty.why?

LixamWei avatar Mar 18 '15 10:03 LixamWei

Same here. Even if layout passed to setMenu has, say, black background with match_parent width and height, the menu view still has default color and inflated view is not displayed. But the strange thing is that you CAN access elements inflated to the menu view with

menu.getMenu().findViewById(R.id.some_object_from_menu_frame); // works well

, but these objects are not visible. Any ideas?

vitalikaz avatar Jun 22 '15 11:06 vitalikaz