我想在进入一个有EditText的页面时总是默认弹出输入法应该怎么做?
如题
我自己试了下下面两行代码,但不管用。求教了
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.toggleSoftInput(0, InputMethodManager.SHOW_FORCED);
[解决办法]
InputMethodManager showSoftInputFromInputMethod(IBinder token, int flags)
调这个方法试试
[解决办法]
用定时器 启动 比如进入页面的300毫秒后启动
启动方式就是你上面写的