由网友(+ \" 視覺系〃梓 x \")分享简介:我实现一个应用程序的一些字段EDITTEXT在点击的EditText开放的移动键盘怎么能实现这个键盘不开i am implementing one application some fields are edittext in edittext clicking open mobile keyboard how...
我实现一个应用程序的一些字段EDITTEXT在点击的EditText开放的移动键盘怎么能实现这个键盘不开
i am implementing one application some fields are edittext in edittext clicking open mobile keyboard how can implemented this keyboard do not open
推荐答案
您可以使用的 InputMethodManager ,以显示或隐藏键盘。为了躲它,你应该这样做:
You can use the InputMethodManager to show or hide the keyboard. In order to hide it, you should do something like:
InputMethodManager mgr = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
mgr.hideSoftInputFromWindow(editText.getWindowToken(), 0);
相关推荐
最新文章