我想表明,輸入始終((InputMethodManager)context.getSystemService(Context.INPUT_METHOD_SERVICE))
Android的節目輸入總是Orientation.portrait
當我在:
Configuration.ORIENTATION_LANDSCAPE mode
進入後點擊發送或點擊輸入。
我嘗試這樣做:
if (event != null &&
event.getKeyCode() == KeyEvent.KEYCODE_ENTER &&
event.getAction() == KeyEvent.ACTION_DOWN) {
if (Screen.getScreenOrientation(mycontext) == Configuration.ORIENTATION_LANDSCAPE)
Utils.hideInput(mycontext, EditTextSend);
else
Utils.showInput(mycontext, EditTextSend);
但不是爲我工作。 僅當用戶點擊返回時纔有可能隱藏輸入嗎?