Slidingmenu menu = new Slidingmenu (this); Create an implementation individually
Menu.setmode (Slidingmenu.left); Set left Slide
To set the layout for the slide menu
Menu.setmenu (R.layout.leftmenu);
Setting the mode of the touch screen
Menu.settouchmodeabove (Slidingmenu.touchmode_fullscreen);//3 slide out the menu mode
Menu.setshadowwidthres (R.dimen.shadow_width);
Menu.setshadowdrawable (R.drawable.shadow); 5 is a gradient shape file
Sets the width of the sliding portion of the content page to 80DP when the slide menu is open
Menu.setbehindoffsetres (R.dimen.slidingmenu_offset);
Sets the degree of change in the fade-out effect to 1.0 is black when off
Menu.setfadedegree (0.2f);
Attach Slidingmenu to the activity and slide out full screen
Menu.attachtoactivity (this, slidingmenu.sliding_content);
Shadow.xml File Settings
<?xml version= "1.0" encoding= "Utf-8"?>
<shape xmlns:android= "Http://schemas.android.com/apk/res/android" >
<gradient
Android:centercolor= "#11000000"
Android:endcolor= "#33000000"
Android:startcolor= "#00000000"/>
</shape>
Slidingmenu Slip Side Slip