Scale background image to wrap content of layout

前端 未结 9 1873
执笔经年
执笔经年 2020-12-23 17:45

I have a layout that contains some text fields and has a background image that\'s displayed at the top of my activity. I\'d like the background image to scale to wrap the c

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-23 18:05

    I think I've done something similar to this in the past, try playing with the gravity setting in your image view, I think one of them should do what you're after.

提交回复
热议问题