互通性 API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
逐步將應用程式遷移至 Compose,表示 Compose 和 View 會並存在應用程式中。
以下頁面將說明需要使用哪些 API,在以 View 為基礎的現有應用程式中整合 Compose:
為您推薦
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-08-27 (世界標準時間)。
[null,null,["上次更新時間:2025-08-27 (世界標準時間)。"],[],[],null,["Incrementally migrating your app to Compose means that Compose and Views will\nco-exist in your app.\n\nThe following pages describe the specific APIs you need to use to integrate\nCompose within your existing View-based app:\n\n- [Using Compose in Views](/develop/ui/compose/migrate/interoperability-apis/compose-in-views): Learn about `ComposeView`---the API to use to add Compose in Views.\n- [Using Views in Compose](/develop/ui/compose/migrate/interoperability-apis/views-in-compose): Learn about `AndroidView` and `AndroidViewBinding`---APIs for using Views in Compose.\n\nRecommended for you\n\n- Note: link text is displayed when JavaScript is off\n- [Display emoji](/develop/ui/compose/text/emoji)\n- [Using Views in Compose](/develop/ui/compose/migrate/interoperability-apis/views-in-compose)\n- [Migrate `CoordinatorLayout` to Compose](/develop/ui/compose/migrate/migration-scenarios/coordinator-layout)"]]