我正在使用https://github.com/SimonVT/android-menudrawer中的 menudrawer 。
当我尝试使用适当的手势从顶部和底部显示菜单时,我只得到一个响应。你知道在同一个活动中是否可以使用超过 1 个菜单吗?
mMenuDrawer = MenuDrawer.attach(this, MenuDrawer.MENU_DRAG_CONTENT, Position.TOP);
mMenuDrawer.setTouchMode(MenuDrawer.TOUCH_MODE_FULLSCREEN);
mMenuDrawer.setContentView(R.layout.activity_main);
mMenuDrawer.setMenuView(R.layout.mt_main);
mMenuDrawer2 = MenuDrawer.attach(this, MenuDrawer.MENU_DRAG_CONTENT, Position.BOTTOM);
mMenuDrawer2.setTouchMode(MenuDrawer.TOUCH_MODE_FULLSCREEN);
mMenuDrawer2.setContentView(R.layout.activity_main);
mMenuDrawer2.setMenuView(R.layout.mb_main);