layout of the screen moves up when keyboard is displayed

后端 未结 6 1193
旧巷少年郎
旧巷少年郎 2020-12-06 04:56

Let say I have the following layout:

when I click on the edit text at the bottom I get this:

As you can notice the image from the top goe

6条回答
  •  忘掉有多难
    2020-12-06 05:19

    I already had a windowsoftInputMode to prevent the keyboard from opening, so just add the comment code

    android:windowSoftInputMode="stateHidden|adjustPan|adjustResize"

提交回复
热议问题