我正在研究这个库: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);
有人知道路吗?