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?
app:rippleColor="@color/colorPrimary"
– Downpour