androiduser-interfaceripple

How to create circular ripple?


I want to create similar ripple effect which is shown in red box and is indicated with an arrow.

enter image description here

Whenever I set selectableItemBackground to any element, it just displays ripple over the element's layout bounds, and not like the one I have shared above.

Please share a working example. Thanks.


Solution

  • Use selectableItemBackgroundBorderless instead of selectableItemBackground.