0Pricing
Android Academy · Lesson

The Modifier System

Size, pad, and style with modifiers.

What Is a Modifier?

A Modifier decorates or configures a composable: its size, padding, background, click behavior, and more. Almost every composable accepts a modifier parameter.

Chaining

Modifiers are chained: each function returns a new modifier, so you call one after another.

Modifier
    .padding(16.dp)
    .size(100.dp)
    .background(Color.LightGray)

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