How can I disable Android Lollipop ripple's alpha value?

后端 未结 1 1414
渐次进展
渐次进展 2021-02-07 07:41

I have a ripple working with a custom color. However, the color is never fully opaque. According to the answers from What should be the color of the Ripple, colorPrimary or colo

1条回答
  •  清歌不尽
    2021-02-07 08:08

    You can simply put alpha value for bounded ripple.

    
        
            
        
    
    

    for unbounded ripple You can set opacity from color if you know your accent color

    
    

    colors.xml

    
        ...
        #ff33b5e5
        #4233b5e5
    
    

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