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

前端 未结 8 1311
情深已故
情深已故 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:09

    It's showing ripple effect with color on API +21, and simple gray background on press for API -21. Add this style:

    
    

    And set it to the view:

提交回复
热议问题