How to stop Soft keyboard showing automatically when focus is changed (OnStart event)

前端 未结 4 1536
有刺的猬
有刺的猬 2020-12-11 00:11

I am developing for a tablet using Android 2.2.

I have a form which I am using for new and editable instances. When editable, I want to stop the user from editing c

4条回答
  •  情话喂你
    2020-12-11 00:44

    If you want this for a particular EditText this will work.

    editText.setShowSoftInputOnFocus(false);

提交回复
热议问题