解决方案 »

  1.   

    默认edittext就会弹出软键盘,有可能是因为你的虚拟机设置原因,试试真机调试
      

  2.   

    InputMethodManager imm = (InputMethodManager)
                    getSystemService(Context.INPUT_METHOD_SERVICE);
            imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, 
                                InputMethodManager.HIDE_NOT_ALWAYS);
      

  3.   

    et.requestFocus(); // 弹出软键盘
    InputMethodManager inputManager = (InputMethodManager) et
    .getContext()
    .getSystemService(Context.INPUT_METHOD_SERVICE); inputManager.showSoftInput(et, 0);试下