@Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_MENU) { SlidingMenu slidingMenu = getSlidingMenu(); if (slidingMenu.isMenuShowing()) slidingMenu.showContent(true); else slidingMenu.showMenu(true); } return super.onKeyDown(keyCode, event); }
public void onRightClicked() { SlidingMenu slidingMenu = getSlidingMenu(); if (slidingMenu.isMenuShowing()) slidingMenu.showContent(true); else slidingMenu.showMenu(true); }