Soft Keyboard shows up on EditText focus ONLY once

后端 未结 5 647
無奈伤痛
無奈伤痛 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:48

    Used this coding in your Activity,It will hide your keyboard this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

提交回复
热议问题