2024-08-03 00:34:52
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK &&
event.getAction() == KeyEvent.ACTION_DOWN) {
// do something
return true;
}
return super.dispatchKeyEvent(event);
}
检查下有没有重写这个方法,导致键盘回退事件被拦截。
2024-08-03 04:00:55
2024-08-03 01:34:33