标签:
slidingMenu = new SlidingMenu(getApplicationContext());
//设置菜单从左侧出来
slidingMenu.setMode(SlidingMenu.LEFT);
//设置菜单的作用域
slidingMenu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
//设置菜单的大小
slidingMenu.setBehindOffset(60);
//不包含ActionBar
slidingMenu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
//加载布局
slidingMenu.setMenu(R.layout.slidingmenu_layout);
标签:
原文地址:http://www.cnblogs.com/bwandroid/p/5631774.html