קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
חיזוי תנועת החזרה, תכונה של ניווט באמצעות תנועות, מאפשרת למשתמשים לראות תצוגה מקדימה של המקום שאליו הם יגיעו אחרי החלקה לחזרה. התכונה 'חזרה עם חיזוי' משתלבת בצורה חלקה עם Compose כדי לשפר את חוויית הניווט באפליקציה. המשתמשים נהנים ממעברים חלקים ואינטואיטיביים יותר כשהם חוזרים אחורה באפליקציה. באיור 1 אפשר לראות איך זה עובד באפליקציית הדוגמה SociaLite.
איור 1. האנימציה של החזרה למסך הבית באפליקציית הדוגמה SociaLite.
במדריכים שלנו מוסבר איך לבצע את הפעולות הבאות באמצעות התכונה 'חזרה חזויה':
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2025-08-21 (שעון UTC)."],[],[],null,["# About Predictive back\n\nPredictive back, a gesture navigation feature, lets users preview where the\nback swipe takes them. Predictive back seamlessly integrates with Compose to\nenhance your app's navigation experience. Users enjoy smoother and more\nintuitive transitions when navigating back within your app. Figure 1 shows how\nthis works in the [SociaLite](https://github.com/android/socialite) sample app.\n**Figure 1.** The back-to-home animation in the SociaLite sample app.\n\nSee our guides to do the following with predictive back:\n\n- [Set up predictive back](/develop/ui/compose/system/predictive-back-setup).\n- Enable default system animations.\n- Enable predictive back with Navigation Compose.\n- Integrate with shared element transitions.\n- Support predictive back with Material Compose components.\n- Access progress manually with [`PredictiveBackHandler`](/reference/kotlin/androidx/activity/compose/package-summary#PredictiveBackHandler(kotlin.Boolean,kotlin.coroutines.SuspendFunction1)).\n- Test the predictive back gesture animation."]]