6

I am using a MaterialButton and I need it to have a borderless ripple effect.

I have tried setting borderless ripple with android:background="attr/selectableItemBackgroundBorderless" but no luck. Looks like MaterialButton has its background and ripple separated. I have inspected the sources and I see ripple drawable is set up within the MaterialButtonHelper class. I was not able to override rippleDrawable through the MaterialButton.

Is there any way to use a MaterialButton with borderless ripple?

kza
  • 1,590
  • 13
  • 32

0 Answers0