InputMethodManager imm = (InputMethodManager)getSystemService(Service.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(findViewById(R.id.value).getWindowToken(), 0);
how to hide softkeyboard using androidviewclient
-
29-06-2022 - |
Domanda
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.
Soluzione 2
Altri suggerimenti
KEYCODE_BACK works for the phones I use (not emulators).
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow