Android开发:在EditText中关闭软键盘
1、EditText有焦点(focusable为true)阻止输入法弹出
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);
发布时间: 2012-08-10 12:19:33 作者: rapoo
Android开发:在EditText中关闭软键盘
1、EditText有焦点(focusable为true)阻止输入法弹出
InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);