0PricingLogin
Jetpack Compose Academy · Lesson

Calling Composables from Composables

Compose small pieces into bigger screens.

Build Big From Small

Real screens are not one giant function. You compose them by calling small Composables from inside larger ones, like nesting building blocks. 🧱

A Composable Calls Another

Inside one Composable you simply call another by name. Here Screen calls Greeting, and Compose draws Greeting where you placed it.

@Composable
fun Screen() {
    Greeting("Compose")
}

All lessons in this course

  1. Writing a @Composable Function
  2. Live Previews with @Preview
  3. Calling Composables from Composables
  4. setContent: Where Your UI Begins
← Back to Jetpack Compose Academy