2016-05-21 157 views

回答

1

你可以這樣做,

@Override 
public boolean onKeyPreIme(int keyCode, KeyEvent event) { 
    if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) { 
    //Clear textview focus here 
    return true; 
    } 
    return super.dispatchKeyEvent(event); 
} 
+0

太好了!謝謝 :) –