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

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

    In addition to android:windowSoftInputMode="adjustPan", try below:

    1. Set android:descendantFocusability="afterDescendants" to your ListView.
    2. Set android:focusable="true" and android:focusableInTouchMode="true" to your EditText.

提交回复
热议问题