← Android App Development (Kotlin) learning pathAndroid App Development (Kotlin) · Module 4 of 10
Jetpack Compose UI
Build modern UIs with composable functions.
📖 Key ideas
- Jetpack Compose is Android's modern declarative UI toolkit.
- @Composable functions describe UI: Text("Hi").
- Layouts: Column, Row, Box; Modifier sets padding, size, clicks.
- Material 3 components: Button, Card, Scaffold, TopAppBar.
- @Preview shows UI in Android Studio without running.
💡 Real-life example: Compose is writing a recipe for the screen; Android cooks it again whenever ingredients (state) change.
@ComposableMarks a UI function
ModifierDecorates size, padding, behaviour
Material 3Google's design system
@PreviewDesign-time preview