← All components

<row>

LayoutWallpaperWidget

Horizontal flex container — children flow left to right.

Example

<row gap="16dp" align="center" justify="spaceBetween">

Attributes

NameTypeDefaultDescription
gapDp—Space between children
paddingDp—Inner padding (single or top/right/bottom/left)
backgroundColor—Background color
gradientString—Gradient brush: linear(...), radial(...), sweep(...)
opacityFloat1.0Container opacity (0.0–1.0)
radiusDp—Corner 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
flexFloat—Flex weight for parent distribution
rotateFloat—Rotation in degrees (clockwise)
scaleString—Uniform scale factor, or 'sx,sy' for axis-specific
offsetString—Translation 'x,y' in dp or % (e.g. '8dp,-4dp' or '10%,0%')
blurDp—Blur radius (Dp) applied to the element and its children
animateString—Animation 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.