0

以下のコードを使用すると、次のエラーが発生します

The method onKeyDown(int, KeyEvent) is undefined for the type SherlockFragment

 public boolean onKeyDown(int KeyCode, KeyEvent event) {
        if ((KeyCode == KeyEvent.KEYCODE_BACK) && web.canGoBack()) {
            web.goBack();
            return true;
        }
        return super.onKeyDown(KeyCode, event);
    }
4

3 に答える 3