← All components

<icon>

ContentWallpaperWidget

Icon resolved through IconRegistry. material:foo reaches the full Material Symbols catalogue (~3000 glyphs) with optional axis controls; other prefixes (weather:, astrology:) target specialist icon sets.

Example

<icon src="material:home" size="40dp" tint="#FFF" fill="true" />

Attributes

NameTypeDefaultDescription
srcStringQualified icon name, e.g. material:home
sizeDp24dpIcon size
tintColorIcon tint color
iconStyleStringoutlinedMaterial Symbols style. outlined (default) / rounded / sharp.
fillBooleanfalseMaterial Symbols fill axis. false (default, outline) / true (solid).
weightInt400Material Symbols weight axis. Integer 100–700.
gradeInt0Material Symbols grade axis. Typically −25, 0, or 200.
opticalSizeInt24Material Symbols optical-size axis. Typically 20, 24, 40, or 48.