Learn Compose
Learn Jetpack Compose with live examples
Short lessons where every example runs right on the page. Read the code, see the result, then open it in the playground and change it.
What is Jetpack Compose?
Jetpack Compose is the modern way to build user interfaces for Android, written in Kotlin. With Compose Multiplatform, the same code also runs on iOS, desktop and the web.
You describe the UI with composable functions, and Compose draws it. When your data changes, Compose updates the screen for you.
Lessons
Text
Show text, then change its size, color, weight and style.
02Column, Row and Box
Place elements below, beside and on top of each other.
03Button and State
Respond to clicks and update the screen with state.
How the examples work
The examples are real Jetpack Compose code, run in your browser by compose-script. It's built on Fast Compose, an interpreter that runs Compose code without a compiler or a build.
The first example takes a few seconds to load (about 5 MB, once). The examples need a recent Chrome, Edge, Firefox or Safari.
To write Compose in your own project, use Android Studio, and add the Fast Compose Preview plugin to see your previews as you type.
Fast Compose