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

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

    you can try this below code to android manifest.xml

    add the code to android manifest android:windowSoftInputMode="adjustPan"

    And also add to xml layout

    <EditText  
          android:background="#FFFFFF"
          android:capitalize="sentences"
          android:inputType="textVisiblePassword"
          android:layout_height="35px"
          >
          <requestFocus /> 
    

    0 讨论(0)
提交回复
热议问题