Google is committed to advancing racial equity for Black communities. See how.

RippleTheme

interface RippleTheme
androidx.compose.material.ripple.RippleTheme

Defines the appearance and the behavior for RippleIndications.

You can define a new theme and apply it via RippleThemeAmbient.

Summary

Public methods
abstract Color

abstract RippleOpacity

Public methods

defaultColor

@Composable abstract fun defaultColor(): Color
Return
the default RippleIndication color at the call site's position in the hierarchy. This color will be used when a color is not explicitly set in the RippleIndication itself.

rippleOpacity

@Composable abstract fun rippleOpacity(): RippleOpacity
Return
the RippleOpacity used to calculate the opacity for the ripple depending on the Interaction for a given component. This will be set as the alpha channel for defaultColor or the color explicitly provided to the RippleIndication.