Object

SpatialElevationLevel

Defines standardized resting elevation levels for spatial UI elements.

Source set: Android
public object SpatialElevationLevel

Defines standardized resting elevation levels for spatial UI elements. These levels provide a consistent visual hierarchy.

Elevation levels range from Level0 (imperceptible, for smooth transitions) to Level5 (highest recommended).

Properties

ActivityDefault

Source set: Android
public val ActivityDefault: Dp = 0.dp

Default elevation for the overall activity or screen background. Usually no elevation. Value: 0.dp.

Level0

Source set: Android
public val Level0: Dp = 0.1.dp

The base elevation, used for the main content panel. Visually indistinct from no elevation (0.dp) but crucial for animation and transition purposes.

Level1

Source set: Android
public val Level1: Dp = 16.dp

Elevation for secondary UI elements like orbiters that float above the main panel. Value: 16.dp.

Level2

Source set: Android
public val Level2: Dp = 24.dp

Elevation for transient UI elements such as Menus (Dropdown, Autocomplete, Select) and Orbiters Menus. Value: 24.dp.

Level3

Source set: Android
public val Level3: Dp = 32.dp

An intermediate elevation. No assigned to default components but available for custom layering. Value: 32.dp.

Level4

Source set: Android
public val Level4: Dp = 40.dp

A higher intermediate elevation. Not assigned to default components but available for custom layering. Value: 40.dp.

Level5

Source set: Android
public val Level5: Dp = 56.dp

The highest standard elevation, typically reserved for elements like SpatialDialog. Value: 56.dp.

DialogDefault

Source set: Android
public val DialogDefault: Dp = 56.dp

Default elevation specifically for Dialogs, typically the highest. Mirrors Level5. Value: 56.dp.

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: