문제

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.

도움이 되었습니까?

해결책 2

InputMethodManager imm = (InputMethodManager)getSystemService(Service.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(findViewById(R.id.value).getWindowToken(), 0);

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top