How to keep background image size when software keyboard show

后端 未结 9 1713
一生所求
一生所求 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

    After days of hardcore hacking I finally managed to construct a solution so advanced it might actually hurt to read it. I place an ImageView with the background behind the scrollview, and set scaleType="matrix" so it does not shrink when the keyboard is shown.

    
    
        
        
            
                
            
        
    
    

提交回复
热议问题