How to make the corners of a button round?

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

    If you want change corner radius as well as want a ripple effect in button when pressed use this:-

    1. Put button_background.xml in drawable
    
    
    
        
            
                
                
            
        
    
        
            
                
                
            
        
    
    
    
    1. Apply this background to your button

提交回复
热议问题