Created
January 10, 2013 16:17
-
-
Save Richie97/4503347 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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