Keyboard overlapping EditText on click

后端 未结 2 1175
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-11 15:06

In my fragment I have an editText inside a scrollview and when I click on that I set it to open like this:

getActivity().getWindow().setSoftInputMode(WindowM         


        
2条回答
  •  情书的邮戳
    2020-12-11 15:35

    Try this, add this code in your AndroidManifest.xml activity

    android:windowSoftInputMode="adjustPan" 
    

提交回复
热议问题