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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -