I work with jfeinstein10 / SlidingMenu Library, i followed all the instructions, but when I try sliding the menu is not seen, how to show it?
My Code
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
menu.setMenu(R.layout.menu_frame);
menu.setSlidingEnabled(true);
menu.showContent();
}
}
in menu_frame
layout i have FrameLayout
and one TextView
Try adding this after your setContentView
setBehindContentView(R.layout.name_of_your_menu_layout);
See if it helps!