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.

Course Objectives

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

Meet the instructor

Catalin Stefan

Content Author & Course Instructor

More courses by the instructor

\Learnworlds\Codeneurons\Pages\ZoneRenderers\CourseCards