0Pricing
Jetpack Compose Academy · Lesson

weight & Flexible Sizing

Distribute space proportionally in rows and columns.

Flexible Space

Sometimes you want children to share space, not take fixed sizes. The weight modifier divides leftover room proportionally. ⚖️

Where weight Lives

weight works only inside a Row or Column. It is part of the layout scope those containers provide to their children.

All lessons in this course

  1. Padding, Size & fillMaxWidth
  2. Background, Border & Clip
  3. Why Modifier Order Matters
  4. weight & Flexible Sizing
← Back to Jetpack Compose Academy