我android:windowSoftInputMode="stateVisible"在清单中有一个Edittext 。现在,当我开始活动时,将显示键盘。怎么藏起来?我无法使用,android:windowSoftInputMode="stateHidden因为当键盘可见时,请最小化应用程序并恢复运行,键盘应可见。我尝试过
InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(getCurrentFocus().getWindowToken(), 0);
但它没有用。
慕慕森
HUWWW
相关分类