How to create ripple effect in simple layout

前端 未结 10 1669
耶瑟儿~
耶瑟儿~ 2020-12-02 06:06

How can I have a ripple effect in a simple linear/relative layout when touching the layout?

I\'ve tried setting the background of a layout to something like:

10条回答
  •  悲&欢浪女
    2020-12-02 06:29

    I tries all those answers and nothing worked to me, so, I solved creating the following style:

    
    

    And then, I applied to my linear layout:

    
    
    

提交回复
热议问题