2012-10-23 57 views

回答

2

覆蓋dispatchKeyEvent(),像這樣:

@Override 
public boolean dispatchKeyEvent(KeyEvent event) 
{ 
    switch (event.getKeyCode()) 
    { 
    case KeyEvent.KEYCODE_MENU: 
    ... 
    return true;