既存の View ベースのアプリを移行する
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Jetpack Compose は、View の相互運用性を最初から考慮して設計されています。View 内で Compose を使用でき、Compose 内でも View を使用できます。この機能を使用すると、Compose をゼロから書き換えることなく既存の View ベースのアプリに導入できます。
以下のページで、Compose を既存のアプリと統合する方法について説明します。
- 移行戦略: Compose をコードベースに安全かつ段階的に導入するための戦略を確認します。
- 相互運用 API: Compose と View ベースの UI を組み合わせるために役立つ Compose の API について確認します。
- その他の考慮事項: View ベースのアプリを Compose に移行する際に考慮すべきその他の事項(テーマ設定、アーキテクチャ、テストなど)について確認します。
サンプル
次のサンプルは、Jetpack Compose と View の相互運用性を示しています。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-08-27 UTC。
[null,null,["最終更新日 2025-08-27 UTC。"],[],[],null,["Jetpack Compose was designed with View interoperability right from the start---you\ncan use Compose within Views, and vice versa. This functionality allows you\nto adopt Compose in your existing View-based app without having to rewrite it\nfrom scratch.\n\nThe following pages describe how to integrate Compose with your existing apps:\n\n- [Migration strategy](/develop/ui/compose/migrate/strategy): Learn the strategy to safely and incrementally introduce Compose into your codebase.\n- [Interoperability APIs](/develop/ui/compose/migrate/interoperability-apis): Learn about Compose's APIs to help you combine Compose with View-based UI.\n- [Other considerations](/develop/ui/compose/migrate/other-considerations): Learn other considerations like theming, architecture, and testing while migrating your View-based app to Compose.\n\nSamples\n\nThe following samples demonstrate Jetpack Compose and View interoperability:"]]