How to prevent Soft Keyboard from resizing background image

前端 未结 12 1810
耶瑟儿~
耶瑟儿~ 2020-12-30 00:09

I have a typical listview with an edittext and a button at the bottom of the activity.

When I click onto the edittext, the sof

12条回答
  •  一向
    一向 (楼主)
    2020-12-30 00:39

    For those who aren't get it:

    double ckeck if your xml already has a @drawable setted (this was the error for me, i was setting via android manifest but it was already setted on the root of xml)

    after that create a theme style with background:

    
    

    Then in your activity on AndroidManifest.xml:

    
    

    and that's it: the activity enter in a screen with the keyboard up, resizing up the items and the background stays at normal size

提交回复
热议问题