Skip to content

Instantly share code, notes, and snippets.

@Richie97
Created January 10, 2013 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Richie97/4503347 to your computer and use it in GitHub Desktop.
Save Richie97/4503347 to your computer and use it in GitHub Desktop.
//Do them SlidingMenu as so
SlidingMenu menu;
private void setUpSideMenu(){
menu = new SlidingMenu(this);
menu.setMenu(R.layout.side_menu);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_MARGIN);
menu.setBehindOffsetRes(R.dimen.actionbar_home_width);
menu.setBehindScrollScale(0.25f);
menu.setShadowDrawable(R.drawable.shadow);
menu.setShadowWidthRes(R.dimen.shadow_width);
menu.setFadeEnabled(true);
menu.attachToActivity(this, SlidingMenu.SLIDING_WINDOW);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment