1、首先要先把光标定位到可编辑的控件里面,比如EditText,否则拉起不了

mEtArenaname.requestFocus();

2、然后再拉起软硬盘

     public void opeSystemKeyBoard() {
                InputMethodManager imm = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
                imm.showSoftInput(this.getCurrentFocus(), InputMethodManager.SHOW_FORCED);
        }

 

相关文章:

  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-10-01
  • 2021-09-19
猜你喜欢
  • 2021-08-13
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-11-12
  • 2021-04-19
  • 2022-12-23
相关资源
相似解决方案