← 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
srcString—Image source: URL, file URI, or asset path
contentScaleString
fitcropfillBoundsfillWidthfillHeightinsidenone
fitScale mode applied when source aspect ratio differs from bounds.
tintColor—Optional color overlay tint
widthDp—Image width
heightDp—Image height
placeholderColor—Background color shown while loading
crossfadeBooleantrueEnable crossfade transition
alignString
topStarttopCentertopEndcenterStartcentercenterEndbottomStartbottomCenterbottomEnd
centerContent alignment within bounds.