我正在使用此库:https://github.com/jfeinstein10/SlidingMenu (我觉得很受欢迎) 我尝试制作一个有4个侧边菜单的应用程序。我从该存储库中检出分支机构,但似乎无法正常工作
SlidingMenu sl = (SlidingMenu) findViewById(R.id.slmenu);
sl.setSlidingEnabled(true);
sl.setMode(SlidingMode.LEFT);
sl.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
sl.setBehindOffsetRes(R.dimen.slidingmenu_offset);
sl.setTouchModeBehind(SlidingMenu.TOUCHMODE_MARGIN);
sl.setShadowWidthRes(R.dimen.shadow_width);
sl.setFadeDegree(0.25f);
sl.setBehindScrollScale(.25f);
sl.setContent(R.layout.dashboard_main);
sl.setMenu(R.layout.dashboard_left);
sl.setShadowDrawable(R.drawable.slidingmenu_left_shadow, SlidingMode.LEFT);
sl.setMenu(R.layout.dashboard_right, SlidingMode.RIGHT);
sl.setShadowDrawable(R.drawable.slidingmenu_right_shadow, SlidingMode.RIGHT);
sl.setMenu(R.layout.dashboard_top, SlidingMode.TOP);
sl.setShadowDrawable(R.drawable.slidingmenu_left_shadow, SlidingMode.TOP);
sl.setMenu(R.layout.dashboard_bottom, SlidingMode.BOTTOM);
sl.setShadowDrawable(R.drawable.slidingmenu_left_shadow, SlidingMode.BOTTOM);
有人知道吗?