Space between keyboard and EditText in Android

后端 未结 3 1935
有刺的猬
有刺的猬 2021-02-11 16:00

Soft input mode is \"SOFT_INPUT_ADJUST_PAN\", and when keyboard shown, EditText moves up to stay visible, but the keyboard and txt\'s bottom are always

3条回答
  •  深忆病人
    2021-02-11 16:32

    Why don't you try this?

    android:windowSoftInputMode="adjustResize"
    

    I know you want to adjust pan but this would solve your problem aswell.

    Since you really want to stay with adjustPan, maybe you can try re-designing the XML layout a little bit.

    You must also add your required padding to the outer most container element in the layout file.

提交回复
热议问题