EditText loses focus when keyboard appears; requires touching twice to edit

前端 未结 7 1058
無奈伤痛
無奈伤痛 2021-02-01 02:49

I have been designing an application which holds an expandable list. At the end of every list, an empty EditText is ready to receive comments. I have the following

7条回答
  •  悲&欢浪女
    2021-02-01 03:13

    You could try something like :

    editText.requestFocus();
    

    You could also set this :

    android:windowSoftInputMode="stateHidden"
    

    in your manifest file

提交回复
热议问题