Skip to content

Shadows

Shadows draw behind a view. Each shadow has a color, radius, x offset, and y offset.

Radius controls how soft the shadow is. X offset moves the shadow left or right. Y offset moves it up or down.

A small widget showing a surface without a shadow.A small widget showing a surface without a shadow.
No shadow
A small widget showing a surface with a soft shadow.A small widget showing a surface with a soft shadow.
Soft shadow
A small widget showing a surface with a shadow offset down and to the right.A small widget showing a surface with a shadow offset down and to the right.
Offset shadow

Shadows are most visible behind views that already have a background, image, or shape.