How to keep background image size when software keyboard show

后端 未结 9 1714
一生所求
一生所求 2020-12-08 20:17

When the software keyboard shows, it resizes my layout and thus squeezes the background image together. My question is basically a duplicate of this question, which is expla

9条回答
  •  粉色の甜心
    2020-12-08 21:05

    Maybe there's another (really simple!) solution: In styles.xml: create a new style like this:

    
    

    AppBaseTheme is your normally used theme for your app. Then you add in Manifest.xml:

    
    
    

    So you have the same style but with a background.

    Important: don't set any backgrounds in your normal .xml file!

    It's my first post and I hope it helps and sorry for my English.

提交回复
热议问题