Migrate XML Views to Jetpack Compose

Jetpack Compose supports interoperability with Views — you can use Compose in Views, and Views in Compose. This allows adoption of Compose in existing View-based apps without having to migrate all Views immediately.

The following pages describe how to integrate Compose with your existing apps:

  • Migration strategy: Learn the strategy to safely and incrementally introduce Compose into your codebase.
  • Interoperability APIs: Learn about Compose's APIs to help you combine Compose with View-based UI.
  • Other considerations: Learn other considerations like theming, architecture, and testing while migrating your View-based app to Compose.

Samples

The following samples demonstrate Jetpack Compose and View interoperability: