Keyboard hiding EditTexts in Fragments

后端 未结 9 846
长情又很酷
长情又很酷 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:36

    I have tried this code and resolve my issue.

    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
    

提交回复
热议问题