Migrate to Jetpack Compose from XML in Android
With the addition of Jetpack compose, Android development has moved from an imperative to a declarative development style. We have removed the need for most xml files, and instead replaced them with Kotlin code which is much more flexible and easier to read. Thus, a need arose for developers to migrate their code to the new development style. This course will teach students how to make that transition.
We will start with an example app built with XML. The app will focus on a few UI screens, and will be kept simple, to focus on the UI aspect. The app will be provided to the students so that no time is wasted building it.
As we progress through the course, we will build the same app in Jetpack compose, while studying the various aspects described above.
What app will you build in this course?
The Animal app fetches a list of animals with their details from a RESTful API using Retrofit and display them on screen. It contains all the required MVVM layers along with Navigation Component which gives extensive exposure for migrating any traditional app into Jetpack Compose while following MAD skills.
In this master codelab, you’ll explore:
Refactoring an existing app to use Jetpack Compose
Understanding the new way of thinking when building UIs
Get comfortable building UIs with Compose
Understand how themes work in Compose
Understand how dimensions work in Compose
Understand which XML files are no longer used, and which are still used in Compose
More courses by the instructor