How can I modify ripple color when using ?attr/selectableItemBackground as background?

前端 未结 8 1307
情深已故
情深已故 2020-11-28 18:22

I\'ve seen some SO questions and they gave some possible methods to achieve what I want. For example:

  1. Use colorControlHighlight attribute in st

8条回答
  •  时光说笑
    2020-11-28 19:10

    Use the below steps:

    1. Make changes to button view in your layout.xml
    2. Add new styles in styles.xml
    

    your_layout.xml

    -The style attribute calls the style that we created.

    -Foreground attribute calls the andorid's default selectable attribute.

    styles.xml

     
    
    
        
    

提交回复
热议问题