publicvoidonBackPressed(){// TODO Auto-generated method stubsuper.onBackPressed(); }@OverridepublicbooleanonKeyDown(intkeyCode,KeyEvent event){if(keyCode==KeyEvent.KEYCODE_BACK)returntrue;//不执行父类点击事件 returnsuper.onKeyDown(keyCode, event);//继续执行父类其他点击事件 }
网友评论