0PricingLogin
Jetpack Compose Academy · Lesson

Background, Border & Clip

Add color, outlines, and rounded shapes.

Decorate with Modifiers

Beyond sizing, modifiers can decorate a Composable. You can paint a background, draw a border, and round its corners. 🎨

Add a Background

background fills a Composable with a solid color. It paints the whole area the element occupies, including its size and fill.

Modifier.background(Color.Blue)

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