One of the core ideas behind Jetpack Compose is composability, which means you can build your user interfaces by combining smaller reusable components, like Lego bricks.
In Compose, when you build a component, it’s a modular, self-contained piece of UI. You describe what the UI looks like in a given state, and the framework takes care of updating it if the state changes. While the UI toolkit allows for customization and reuse, when building custom views in XML, you inherit all of the logic from existing views before extending them.
In this lesson, you’ll learn about components. You’ll first explore some of the most commonly used UI components that Jetpack Compose ships with and then work through a hands-on demo to break your UI into reusable components.
You’ll learn how to:
Use the Image component.
Use the Button component.
Use the Switch component.
Break up a monolith screen into smaller reusable components.
See forum comments
This content was released on Sep 10 2024. The official support period is 6-months
from this date.
Learn how to break up your UI into components to facilitate reuse and how to utilize built-in basic components.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.