Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Getting Started: Jetpack Compose Layouts

Getting Started: Jetpack Compose Layouts

Jetpack Compose is the modern UI toolkit for building native Android UI. It simplifies UI development on Android with less code, powerful tools, and intuitive Kotlin APIs.

In this talk, we'll look at composable functions, composable previews, and common layouts such as Column, Row, and Box layouts. We'll also cover modifiers and how to use them to tweak the appearance and behavior of composables.

Beatrice Kinya

May 02, 2023
Tweet

More Decks by Beatrice Kinya

Other Decks in Technology

Transcript

  1. What? ❖ Modern toolkit for building native Android UI. ❖

    Uses Kotlin, no xml code. ❖ Declarative functions and intuitive Kotlin APIs that simplify development of the app ui.
  2. Composable Function: Preview ❖ @Preview annotation allows you to preview

    the UI without having to build and install your app.
  3. Layouts ❖ Column: used to arrange UI elements vertically. ❖

    Row: Used to arrange UI elements horizontally. ❖ Box: UI elements are stacked on top of each other.
  4. More on Modifiers ❖ Compose Layouts and Modifier - MAD

    skills: https://www.youtube.com/watch?v=LjeHsvPIdpY&list=PLWz5rJ2EKKc94tpHND8pW8Qt8ZfT1a4c q ❖ Compose modifiers talk: https://speakerdeck.com/bkinya/compose-modifiers
  5. Box layout ❖ Children of the box layout are stacked

    on top of each other. ❖ Use align modifier to specify where the composable should be drawn.
  6. Resources ❖ Github Project: https://github.com/BKinya/Todo-App ❖ Compose Layouts and Modifier

    - MAD skills: https://www.youtube.com/watch?v=LjeHsvPIdpY&list=PLWz5rJ2EKKc94tpHND8pW8Qt8ZfT1a4c q ❖ Compose modifiers talk: https://speakerdeck.com/bkinya/compose-modifiers