Search code examples
javaandroidripplerippledrawable

How to achieve an "overflowing" riplle-effect in android


I saw this kind of riplle effect in YouTube's android app. I want to get the same effect working in my app. Should I create an own Ripple-Drawable or is there a different approach? Actually I already tried "?attr/selectableItemBackground" but the effect is much different. The ripple effect I want to achieve

This is how my ripple effect looks: enter image description here


Solution

  • Just add the value ?android:selectableItemBackgroundBorderless to android:foreground or android:background

    Be sure to use the android namespace.