Rounded corners on material button

前端 未结 7 759
粉色の甜心
粉色の甜心 2020-12-04 12:26

I\'m following the tips from questions like this to create a button style like suggested on Material Design.

However, I need to change the corner radius and

7条回答
  •  悲哀的现实
    2020-12-04 12:35

    I will tell you my exact solution for this . Inside selector tags, you can put items (functionality of the buttons)

    Second item of the selector tag has the opposite behaviour. You can add as much as selector (button behaviour) ADD THIS DRAWABLE XML AS A BACKGROUND OF THE BUTTON android:background="@drawable/this xml"

        
     
        
             
                
                    
                        
    
                        
    
                        
    
                    
                
                 //first item was state enabled so this is automatically state disabled
                    
                        
                        
    
                        
    
                    
                
            
        
        
            
                
                    
                        
                        
    
                        
    
                    
                
            
        
        
            
                
                    
                        
                        
    
                        
    
                    
                
            
        
    
    
    

提交回复
热议问题