Android material design buttons - Pre lollipop

后端 未结 8 2168

How do I implement the \"raised button\" and the \"flat button\" as described in google\'s material design guidelines?


Raised buttons add dimension

8条回答
  •  梦如初夏
    2021-01-29 20:23

    I use this as a background for a button with AppCompat and it depicts a raised button (with ripples n all), hope it helps.

    myRaisedButton.xml - inside the drawable folder:

    
        
            
                
                
            
        
        
    
    

    styles.xml: