3

I am UI and in that in edittext I type and then click button. The softkeyboard stays popped up. Actually before clicking button I want to hide keyboard. How to do it ?

Regards,

miten.

4

2 回答 2

0

KEYCODE_BACK works for the phones I use (not emulators).

于 2013-10-15T16:13:02.177 回答
0
InputMethodManager imm = (InputMethodManager)getSystemService(Service.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(findViewById(R.id.value).getWindowToken(), 0);
于 2013-10-16T15:51:38.730 回答