Android shape border with gradient

前端 未结 5 792
小蘑菇
小蘑菇 2020-12-01 07:48

I want to create a border for a linearLayout. So I decide to create a shape. I want the border to have a gradient. The following is not doing it. It fills the rectangle and

5条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 07:55

    This would be the appropriate solution to what you wanna do. It includes gradient in stroke as well as a gradient in fill colour.

    
        
            
                
                    
                    
                    
                    
                
            
            
                
    
                
            
            
                
                    
    
                    
                
            
        
    

提交回复
热议问题