0Pricing
Jetpack Compose Academy · Lesson

Color, Alignment & Overflow

Tint text and handle long content gracefully.

Beyond Black Text

Default text adopts your theme color, but you often want a specific tint. Compose lets you set color and handle long content with ease.

Tint with color

Pass a color to recolor any Text. Use Color values directly, or pull semantic colors from MaterialTheme for theme-aware results.

Text("Error", color = Color.Red)

All lessons in this course

  1. The Text Composable
  2. Font Size, Weight & Style
  3. Color, Alignment & Overflow
  4. AnnotatedString: Rich Mixed Text
← Back to Jetpack Compose Academy