Class

CardElevation

Represents the elevation for a card in different states.

Source set: Common
public class CardElevation internal constructor(
    private val defaultElevation: Dp,
    private val pressedElevation: Dp,
    private val focusedElevation: Dp,
    private val hoveredElevation: Dp,
    private val draggedElevation: Dp,
    private val disabledElevation: Dp,
)

Represents the elevation for a card in different states.

  • See CardDefaults.cardElevation for the default elevation used in a Card.
  • See CardDefaults.elevatedCardElevation for the default elevation used in an ElevatedCard.
  • See CardDefaults.outlinedCardElevation for the default elevation used in an OutlinedCard.

Functions

equals

Source set: Common
override fun equals(other: Any?): Boolean

hashCode

Source set: Common
override fun hashCode(): Int
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: