((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)). ide hideSoftInputFromWindow(WidgetSearchActivity.this.getCurrentFocus().getWindowToken(), this InputMethodManager.HIDE_NOT_ALWAYS); spa //顯示軟鍵盤,控件ID能夠是EditText,TextView ((InputMethodManager)getSystemService(INPUT_METHOD_SERVICE)).showSoftInput(控件ID, 0); |