Hiding android SoftKey board -
how hide softkeyboard screen when edittext accepting input remote? have tried
inputmethodmanager imm = (inputmethodmanager)getsystemservice(context.input_method_service); imm.togglesoftinputfromwindow(edittext.getwindowtoken(), inputmethodmanager.hide_implicit_only, 0); it hides softkeyboard stops edittext taking input.
use this.
public static final void hidesoftkeyboard(context context, edittext edittext) { inputmethodmanager imm = (inputmethodmanager) context .getsystemservice(context.input_method_service); imm.hidesoftinputfromwindow(edittext.getwindowtoken(), 0); } thanks
android android-softkeyboard soft-keyboard
No comments:
Post a Comment