예제 #1
0
 /**
  * On key up.
  *
  * @param keyCode the key code
  * @param event the event
  * @return true, if successful
  */
 public boolean onKeyUp(int keyCode, KeyEvent event) {
   if (keyCode == KeyEvent.KEYCODE_BACK && mSlidingMenu.isMenuShowing()) {
     if (mCloseOnBack) {
       mActivity.finish();
     } else {
       showContent();
     }
     return true;
   }
   return false;
 }
 /* (non-Javadoc)
  * @see com.slidingmenu.lib.app.SlidingActivityBase#showAbove()
  */
 public void showContent() {
   mHelper.showContent();
 }