Migrate existing View-based apps
Stay organized with collections
Save and categorize content based on your preferences.
Jetpack Compose was designed with View interoperability right from the start—you
can use Compose within Views, and vice versa. This functionality allows you
to adopt Compose in your existing View-based app without having to rewrite it
from scratch.
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:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-01-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-24 UTC."],[],[]]