ความสามารถในการทำงานร่วมกัน API
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การย้ายข้อมูลแอปไปยัง Compose ทีละน้อยหมายความว่า Compose และ View จะ
อยู่ร่วมกันในแอป
หน้าต่อไปนี้อธิบาย API ที่เฉพาะเจาะจงซึ่งคุณต้องใช้เพื่อผสานรวม
Compose ภายในแอปที่อิงตาม View ที่มีอยู่
แนะนำสำหรับคุณ
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-08-21 UTC"],[],[],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)"]]