← All components

<layer>

LayoutWallpaperWidget

Full-screen stacking container. Page-specific layers render on their page only.

Example

<layer id="content" layout="column" align="center" gap="16dp">

Attributes

NameTypeDefaultDescription
gapDpSpace between children
paddingDpInner padding (single or top/right/bottom/left)
backgroundColorBackground color
gradientStringGradient brush: linear(...), radial(...), sweep(...)
opacityFloat1.0Container opacity (0.0–1.0)
radiusDpCorner radius
alignString
startcenterendstretchtopStarttopCentertopEndcenterStartcenterEndbottomStartbottomCenterbottomEnd
startCross-axis alignment (column/row) or self-alignment within parent (box).
justifyString
startcenterendspaceBetweenspaceAroundspaceEvenly
startMain-axis distribution.
fillMaxWidthBooleanfalseFill available width
fillMaxHeightBooleanfalseFill available height
flexFloatFlex weight for parent distribution
rotateFloatRotation in degrees (clockwise)
scaleStringUniform scale factor, or 'sx,sy' for axis-specific
offsetStringTranslation 'x,y' in dp or % (e.g. '8dp,-4dp' or '10%,0%')
blurDpBlur radius (Dp) applied to the element and its children
animateStringAnimation preset shorthand, e.g. "pulse:2s", "breathe:4s", "spin:8s", "bob:3s:8dp", "sway:4s:6", "fade:3s:0.3:1", "shimmer:2s". Reads the shared animation clock so all animated elements stay phase-locked.
idStringLayer identifier
layoutString
columnrowbox
boxLayout mode.
regionString
fulltop-halftop-thirdbottom-halfbottom-third
fullConstrain to a fixed screen region.
parallaxFloat0Parallax offset factor (0.0–1.0)
safeAreaBooleanfalseApply system inset padding