Interoperability API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
逐步将应用迁移到 Compose 意味着 Compose 和 View 将共存于您的应用中。
以下页面介绍了在基于 View 的现有应用中集成 Compose 时需要使用的具体 API:
为您推荐
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-21。
[null,null,["最后更新时间 (UTC):2025-08-21。"],[],[],null,["# Interoperability APIs\n\nIncrementally 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\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)"]]