Veja abaixo como ocultar ou mostrar o teclado do android programaticamente.
MOSTRANDO O TECLADO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)) | |
.showSoftInput(editText, 0); |
OCULTANDO O TECLADO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)) | |
.hideSoftInputFromWindow(editText.getWindowToken(), 0); |
aonde eu coloco isso amigo?
tenho um telefone android que nao tem o programa de chamar ou o teclado numerico e o botao de chamar e o vermelho..tem como instalar um outro nele sera?ou habilitar o dele? valew!
@nilton, Isso você coloca dentro do programa (no código fonte) você precisa de ter o código fonte, se não é o desenvolvedor do programa entre em contato com ele e informe do bug (problema)
Valeu,obrigado.
Excelente !! Me ajudou em um app…
Muito bom tutoria, eu acharai melhor deixar o código divido para melhor entendimento.
InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editText.getWindowToken(), 0);
Mesmo assim, parabéns, ajudou muito!