Resize bitmap inside a drawable layer-list

后端 未结 2 2136
清酒与你
清酒与你 2021-01-13 09:32

Currently I\'m developing a Android application. I want to make a text (a header) with a background that looks like this:

 _______
/______/

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 09:41

    I solved it using two (half-transparant) images which represent the corners.

    The XML looks like this:

     
    
            
                        
                        
                               
                    
            
            
                
            
            
                
                    
    
    

提交回复
热议问题