תמיכה בכלי אנימציה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Android Studio תומך בבדיקה של animate*AsState
, CrossFade
, rememberInfiniteTransition
, AnimatedContent
, updateTransition
ושל animatedVisibility
בתצוגה מקדימה של אנימציה. אפשר לבצע את הפעולות הבאות:
- תצוגה מקדימה של פריים מעבר, פריים אחרי פריים
- בדיקת הערכים של כל האנימציות במעבר
- תצוגה מקדימה של מעבר בין מצב התחלתי למצב יעד
- בדיקה ותיאום של כמה אנימציות בו-זמנית
כשמתחילים את התצוגה המקדימה של האנימציה, מופיעה החלונית 'אנימציות' שבה אפשר להפעיל כל מעבר שכלול בתצוגה המקדימה. למעבר ולכל אחד מערכי האנימציה שלו יש שם ברירת מחדל. אפשר להתאים אישית את התווית על ידי ציון הפרמטר label
בפונקציות updateTransition
ו-AnimatedVisibility
. מידע נוסף זמין במאמר בנושא תצוגה מקדימה של אנימציה.

מומלץ בשבילך
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-08-27 (שעון 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-27 (שעון UTC)."],[],[],null,["Android Studio supports inspection of [`animate*AsState`](/develop/ui/compose/value-based#animate-as-state), [`CrossFade`](/develop/ui/compose/animation/composables-modifiers#crossfade), [`rememberInfiniteTransition`](/develop/ui/compose/animation/value-based#rememberinfinitetransition), [`AnimatedContent`](/develop/ui/compose/animation/composables-modifiers#animatedcontent),\n[`updateTransition`](/develop/ui/compose/animation/value-based#updateTransition) and\n[`animatedVisibility`](/develop/ui/compose/animation/composables-modifiers#animatedvisibility) in\n[Animation Preview](/develop/ui/compose/tooling#animations). You can do the\nfollowing:\n\n- Preview a transition frame by frame\n- Inspect values for all animations in the transition\n- Preview a transition between any initial and target state\n- Inspect and coordinate multiple animations at once\n\nWhen you start Animation Preview, you see the \"Animations\" pane where you can\nrun any transition included in the preview. The transition as well as each of\nits animation values is labeled with a default name. You can customize the label\nby specifying the `label` parameter in the `updateTransition` and the\n`AnimatedVisibility` functions. For more information, see\n[Animation Preview](/develop/ui/compose/tooling/animation-preview).\n\nRecommended for you\n\n- Note: link text is displayed when JavaScript is off\n- [Value-based animations](/develop/ui/compose/animation/value-based)\n- [Animations in Compose](/develop/ui/compose/animation/introduction)\n- [Animation modifiers and composables](/develop/ui/compose/animation/composables-modifiers)"]]