Android: How do I prevent the soft keyboard from pushing my view up?

后端 未结 28 1285
南笙
南笙 2020-11-22 05:10

I have a vertical sliding drawer at the bottom of my app. When the soft keyboard opens, it pushes the tab for the drawer up, so it sits atop the keyboard. I actually want it

28条回答
  •  礼貌的吻别
    2020-11-22 05:59

    So far the answers didn't help me as I have a button and a textInput field (side by side) below the textView which kept getting hidden by the keyboard, but this has solved my issue:

    android:windowSoftInputMode="adjustResize"
    

提交回复
热议问题