העברת אפליקציות קיימות שמבוססות על צפייה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Jetpack Compose תוכנן עם יכולת פעולה הדדית של View כבר מההתחלה – אפשר להשתמש ב-Compose בתוך Views, ולהיפך. הפונקציונליות הזו מאפשרת לכם להשתמש ב-Compose באפליקציה קיימת שמבוססת על View בלי שתצטרכו לכתוב אותה מחדש מאפס.
בדפים הבאים מוסבר איך לשלב את Compose עם האפליקציות הקיימות:
- אסטרטגיית העברה: כאן מוסבר על האסטרטגיה להוספה בטוחה והדרגתית של Compose לבסיס הקוד.
- APIs של יכולת פעולה הדדית: מידע על ממשקי ה-API של Compose שיעזרו לכם לשלב את Compose עם ממשק משתמש מבוסס-View.
- שיקולים נוספים: כאן מוסבר על שיקולים נוספים כמו עיצוב, ארכיטקטורה ובדיקות במהלך העברת אפליקציה מבוססת View ל-Compose.
טעימות
בדוגמאות הבאות מוצגת יכולת הפעולה ההדדית של Jetpack Compose ו-View:
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-21 (שעון UTC)."],[],[],null,["# Migrate existing View-based apps\n\nJetpack 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\n#### Samples\n\nThe following samples demonstrate Jetpack Compose and View interoperability:"]]