Learnr

Learn Jetpack Compose

Build modern Android interfaces from plain Kotlin functions.

Free to start. No credit card. Or browse all courses.

What's inside your Jetpack Compose course

A sample path Learnr builds for Jetpack Compose. Your real course adapts to your goal and level.

  1. Kotlin refresher and composable functions
  2. Layouts, modifiers and Material 3 components
  3. State, remember, recomposition and state hoisting
  4. Lazy lists, input fields and theming
  5. ViewModels, flows and side effects
  6. Navigation, testing and app architecture

Jetpack Compose is Google's recommended toolkit for building Android interfaces. Screens are written as Kotlin functions marked @Composable, and when the state they read changes, Compose reruns only the affected functions, a process called recomposition. That replaces XML layouts and manual view updates with code that reads top to bottom. The concepts that matter most are state hoisting, remember, modifier chains and how ViewModels feed data into the UI. Learnr teaches Compose with short lessons and exercises that build up from a single composable to a full multi-screen app.

How to learn Jetpack Compose, step by step

  1. Get comfortable with Kotlin lambdas first. Compose leans on trailing lambdas, default arguments, data classes and extension functions. Spend a few sessions on Kotlin basics so the syntax does not distract you from the UI concepts.
  2. Build static layouts with @Preview. Recreate a contact card or product tile using Column, Row, Box, Text and Image. Use @Preview functions to iterate quickly, and learn that Modifier order changes the result, just like wrapping layers.
  3. Learn state and recomposition deeply. Write a counter with remember { mutableStateOf(0) }, then hoist the state to the parent so the child becomes stateless. Rotate the device and see why rememberSaveable exists.
  4. Render data with LazyColumn. Display a long list of items with LazyColumn and give each item a stable key. Add a text field filter, and check the Layout Inspector for recomposition counts to spot unnecessary work.
  5. Wire a ViewModel and side effects. Expose UI state from a ViewModel as a StateFlow and collect it with collectAsStateWithLifecycle. Use LaunchedEffect for one-off work like showing a snackbar instead of putting it in the composable body.
  6. Finish a multi-screen app. Add Navigation Compose with a list and detail screen and persist data with Room. A Learnr streak of brief lessons on recomposition and side effects helps those rules become second nature as the app grows.

What you'll learn

  • Write composable functions and preview them in Android Studio
  • Manage state with remember, mutableStateOf and state hoisting
  • Style and arrange UI with Modifier chains, Row, Column and Box
  • Render long, efficient lists with LazyColumn and stable keys
  • Connect screens to a ViewModel and navigate between them

How long does it take to learn Jetpack Compose?

Developers who know Kotlin can build simple Compose screens within 2 weeks and a complete small app in 6 to 10 weeks at about 5 hours a week. Starting from scratch, including Kotlin and Android basics, usually takes 3 to 6 months.

What you need before you start

Basic Kotlin is the main requirement, plus Android Studio on a computer with enough memory to run the emulator. Prior experience with XML layouts is helpful but not needed.

Common mistakes to avoid

  • Doing work like network calls or logging directly inside a composable body, which reruns on every recomposition. Move it into LaunchedEffect or the ViewModel.
  • Keeping state deep inside reusable components, which makes them hard to test and reuse. Hoist state up and pass values and callbacks down.
  • Forgetting remember around expensive objects or mutableStateOf, so values reset every time the function recomposes.

How Learnr builds your course

Type your topic

Tell Learnr you want to learn Jetpack Compose, or get as specific as you like.

Get a personalized course

Learnr instantly builds a full Jetpack Compose course tailored to your goal and skill level.

Learn and level up

Move through bite-sized lessons and interactive practice, earning XP and keeping your streak.

Jetpack Compose questions, answered

Is Jetpack Compose replacing XML layouts?

Google recommends Compose for new Android UI, and most new libraries and samples use it. XML views are still supported and remain in many existing apps, and the two can be mixed in the same screen while teams migrate.

Can Compose build apps for other platforms?

Compose Multiplatform from JetBrains extends the same model to desktop, iOS and web. Learning Jetpack Compose on Android transfers directly, though some platform APIs differ.

Do I need to learn the old Android View system too?

Not to start. Learn Compose first, then pick up enough about Views to maintain older screens or embed a View with AndroidView when a library has no Compose version.

Explore more courses

More programming and tech courses

See all programming and tech courses

Ready to learn Jetpack Compose?

Start your free, personalized Jetpack Compose course in seconds. It will be typed in and ready when you get there.

Start learning Jetpack Compose

Free to start. No credit card.