How to make the corners of a button round?

前端 未结 13 920
暖寄归人
暖寄归人 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:38

    Simple way i found out was to make a new xml file in the drawable folder and then point the buttons background to that xml file. heres the code i used:

    
    
    
    
    
    
    
    

提交回复
热议问题