Setting a background image to a view stretches my view

前端 未结 7 2077
梦如初夏
梦如初夏 2020-12-05 17:54

I created a background image bitmap for a view and now the view is being stretched to the size of the background image....

is this normal?



        
7条回答
  •  醉梦人生
    2020-12-05 17:59

    I suggest to create a wrapper layout and put the background image in there. i'm using it that way and fits very nicely. see example below

    
    
    
    


    ...
    Social Coding @ AspiroTV

提交回复
热议问题