android - Issue with open keyboard -
scenario 1 :
when open app
- go inside of
fragment
- try enter digit works well
scenario 2 :
when open app
- access
navigation drawer
- open
fragment
navigation drawer
- return main
fragment
- go inside of
fragment
, try enter digit keyboard
not open
you can manage force show , hide keyboard way:
private void hidekeyboard() { ((inputmethodmanager) getsystemservice(context.input_method_service)).hidesoftinputfromwindow(invisibleedit.getwindowtoken(), 0); } private void showkeyboard() { inputmethodmanager imm = (inputmethodmanager) getsystemservice(context.input_method_service); if(imm != null){ imm.togglesoftinput(inputmethodmanager.show_implicit, 0); } }
Comments
Post a Comment