开发者

in clicking edittext box then don't open mobile keyboard this scenario how can implemented

开发者 https://www.devze.com 2022-12-29 00:18 出处:网络
I am implementing one application开发者_C百科 some fields are edittext in edittext clicking open mobile keyboard how can implemented this keyboard do not open You can use the InputMethodManager to sho

I am implementing one application开发者_C百科 some fields are edittext in edittext clicking open mobile keyboard how can implemented this keyboard do not open


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);
0

精彩评论

暂无评论...
验证码 换一张
取 消