How to make the corners of a button round?

前端 未结 13 979
暖寄归人
暖寄归人 2020-11-22 16:36

I want to make the corners of a button round. Is there an easy way to achieve this in Android?

13条回答
  •  孤独总比滥情好
    2020-11-22 17:30

    This link has all the information you need. Here

    Shape.xml

    
    
    
        
    
        
    
    

    and main.xml

    
    
    
        
    
        

    This should give you your desired result.

    Best of luck

提交回复
热议问题