← All components

<image>

ContentWallpaperWidget

Displays a local or remote image with expression-driven source, sizing, and styling.

Example

<image src="https://example.com/photo.jpg" width="120dp" height="80dp" contentScale="crop" />

Attributes

NameTypeDefaultDescription
srcStringImage source: URL, file URI, or asset path
contentScaleString
fitcropfillBoundsfillWidthfillHeightinsidenone
fitScale mode applied when source aspect ratio differs from bounds.
tintColorOptional color overlay tint
widthDpImage width
heightDpImage height
placeholderColorBackground color shown while loading
crossfadeBooleantrueEnable crossfade transition
alignString
topStarttopCentertopEndcenterStartcentercenterEndbottomStartbottomCenterbottomEnd
centerContent alignment within bounds.