Keyboard hiding EditTexts in Fragments

后端 未结 9 783
长情又很酷
长情又很酷 2020-12-25 13:59

edit: I need to use the keyboard, but it hides my EditText, I need it to scroll so the keyboard is not hiding it.

I am using a Samsun

9条回答
  •  执笔经年
    2020-12-25 14:25

    What worked for me was using the ScrollView the same way as you in my FrameLayout, in which I added this property: android:windowSoftInputMode="adjustPan". At the end, it looks like this and it is working. I did not need to change anything programatically:

     
    
        
          ...
        
    
    

提交回复
热议问题