0Pricing
Android Academy · Lesson

Alignment and Arrangement

Position children precisely.

Positioning Children

Inside a Column or Row, two settings control where children sit: alignment (across the layout) and arrangement (along the layout).

Column Alignment

In a Column, children stack vertically. horizontalAlignment controls their horizontal position — left, center, or right.

Column(horizontalAlignment = Alignment.CenterHorizontally) {
    Text("Centered")
    Text("Also centered")
}

All lessons in this course

  1. Column, Row, and Box
  2. The Modifier System
  3. Alignment and Arrangement
  4. Lists with LazyColumn
← Back to Android Academy