round corners with border color

前端 未结 2 805
旧巷少年郎
旧巷少年郎 2021-02-05 04:11

I am using the following code to get rounded corners as well as a colored outline:

 

2条回答
  •  耶瑟儿~
    2021-02-05 04:59

    Use the tag to create a drawable in XML with rounded corners. (You can do other stuff with the shape tag like define a color gradient as well).

    Following code may help you:

     
     
        
    
    
    
     
    
     
    
    

提交回复
热议问题