Layout with different colors

前端 未结 3 613
情书的邮戳
情书的邮戳 2021-02-06 02:07

I\'d like to have a background color of a RelativeLayout similar to that of an image shown in the link below. Ignore the black strip in the bottom half of the image

3条回答
  •  梦毁少年i
    2021-02-06 02:50

    You can use gradient. Set different gradient in selector as you want. Done!

    GradientDrawable.class

    This is what you want, set your colors. Enjoy!

    
    
    
        
            
    
        
        
    
    
        
            
    
        
        
        
    
    
    

提交回复
热议问题