Soft Keyboard shows up on EditText focus ONLY once

后端 未结 5 650
無奈伤痛
無奈伤痛 2020-11-30 06:08

Thanks for reading.

I am facing a strange problem: My app behavior is such that when the Activity starts, I requestFocus() on an Edi

5条回答
  •  天命终不由人
    2020-11-30 06:50

    try this:

    final InputMethodManager imm = (InputMethodManager)EnterWordsActivity.this.getSystemService(Context.INPUT_METHOD_SERVICE);
        if (imm != null)
        {
            imm.toggleSoftInput(YOUE_EDTITE_TEXT.SHOW_FORCED,1);
        }
    

提交回复
热议问题