Does changing the background also change the padding of a LinearLayout?

后端 未结 3 1578
刺人心
刺人心 2020-12-05 14:15

I have the following LinearLayout. What I don\'t understand is if I set the background to another image, the padding information are reset. Is there a way to pr

3条回答
  •  离开以前
    2020-12-05 14:49

    You can use shape to set the background with single colour or image and apply padding like this:

    
        
        
        
    
    

提交回复
热议问题