How to add colored border on cardview?

前端 未结 7 1709
遥遥无期
遥遥无期 2020-12-13 05:56

I am new to Android and this is my first question here.

I am trying to add a colored vertical border at the beginning of the cardview. How can I achieve it on xml ?

7条回答
  •  长情又很酷
    2020-12-13 06:25

    I would like to improve the solution proposed by Amit. I'm utilizing the given resources without adding additional shapes or Views. I'm giving CardView a background color and then nested layout, white color to overprint yet with some leftMargin...

    
    
    
    
        
    
        
    
            
    
            
    
        
    
    
    

提交回复
热议问题