Android 12 Developer Preview is here! Try it out, and give us your feedback!

RippleAlpha

@Immutable class RippleAlpha
kotlin.Any
   ↳ androidx.compose.material.ripple.RippleAlpha

RippleAlpha defines the alpha of the ripple / state layer for different Interactions.

Summary

Public constructors
<init>(draggedAlpha: Float, focusedAlpha: Float, hoveredAlpha: Float, pressedAlpha: Float)

RippleAlpha defines the alpha of the ripple / state layer for different Interactions.

Public methods
Boolean
equals(other: Any?)

Int

String

Properties
Float

the alpha used when the ripple is dragged

Float

not currently supported

Float

not currently supported

Float

the alpha used when the ripple is pressed

Public constructors

<init>

RippleAlpha(
    draggedAlpha: Float,
    focusedAlpha: Float,
    hoveredAlpha: Float,
    pressedAlpha: Float)

RippleAlpha defines the alpha of the ripple / state layer for different Interactions.

Public methods

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

toString

fun toString(): String

Properties

draggedAlpha

val draggedAlpha: Float

the alpha used when the ripple is dragged

focusedAlpha

val focusedAlpha: Float

not currently supported

hoveredAlpha

val hoveredAlpha: Float

not currently supported

pressedAlpha

val pressedAlpha: Float

the alpha used when the ripple is pressed