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

前端 未结 7 1122
無奈伤痛
無奈伤痛 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:21

    I had this problem with android.support.design.widget.TextInputEditText and it was solved from changing the flag order in manifest from:

    android:windowSoftInputMode="stateHidden|adjustPan"
    

    to

    android:windowSoftInputMode="adjustPan|stateHidden"
    

提交回复
热议问题