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
- The Text Composable
- Font Size, Weight & Style
- Color, Alignment & Overflow
- AnnotatedString: Rich Mixed Text