Compose Basics for Android Developers
Compose basics cover how Jetpack Compose builds user interfaces from composable functions. A composable describes UI for a given state, and when that state changes the framework recomposes only the affected parts. Layouts such as Row, Column and Box, together with Material 3 components, form the building blocks of every Compose screen.
Stage: UI with Jetpack Compose · Part of the Android Developer roadmap · Last reviewed 19 November 2026
What to learn in Compose Basics
- Write a composable function and preview it in Android Studio
- Hold UI state with remember and mutableStateOf
- Explain recomposition and what triggers it
- Arrange content with Row, Column, Box and Modifier chains
- Apply Material 3 theming with colors, typography and shapes
Compose Basics interview questions
What is recomposition in Jetpack Compose?
Recomposition is Compose re-running composable functions whose inputs or observed state have changed, so the screen reflects new data. Compose skips composables whose inputs are unchanged. Because a composable can run often and in any order, it should be free of side effects and cheap to execute.
Why do we use remember with mutableStateOf?
mutableStateOf creates an observable value, and reading it makes Compose recompose when it changes. Without remember, the state would be recreated as a fresh object on every recomposition and lose its value. remember keeps the object across recompositions; rememberSaveable also survives configuration changes.
Where Compose Basics fits in the Android Developer roadmap
Compose Basics belongs to the UI with Jetpack Compose stage (beginner level), which takes about 6 hours. Declarative UIs.
Other units in this stage
Back to the full Android Developer roadmap