Raised and flat buttons with different background and highlight colors

前端 未结 1 802
南方客
南方客 2021-01-03 11:26

I\'m creating application using com.android.support:appcompat-v7:23.0.1 library.

I define application theme in values/styles.xml:



        
1条回答
  •  遥遥无期
    2021-01-03 11:54

    After some research and googling I defined separate themes for different raised and flat buttons:

    
    
    
    
    
    
    
    
    
    
    
    

    Note, that I'm using buttonStyle attribute not android:buttonStyle because it will not work on pre-lollipop devices.

    Use these themes in android:theme attribute:

    0 讨论(0)
提交回复
热议问题