示例#1
0
  @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);
  }
示例#2
0
 public void onRightClicked() {
   SlidingMenu slidingMenu = getSlidingMenu();
   if (slidingMenu.isMenuShowing()) slidingMenu.showContent(true);
   else slidingMenu.showMenu(true);
 }