Android软键盘弹出方法无效

896 阅读1分钟

问题:通过InputMethodManager的showSoftInput(edittext,0),调用弹出键盘无效。

解决:和edittext.requestFocus()一起调用即可。