/** * 屏蔽back键 */ @Override public boolean dispatchKeyEvent(android.view.KeyEvent event) { switch(event.getKeyCode()) { case KeyEvent.KEYCODE_BACK: return false; } return true; };
时间: 2025-01-16 05:23:43
/** * 屏蔽back键 */ @Override public boolean dispatchKeyEvent(android.view.KeyEvent event) { switch(event.getKeyCode()) { case KeyEvent.KEYCODE_BACK: return false; } return true; };