動畫工具支援
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Android Studio 支援在「Animation Preview」中檢查 animate*AsState
、CrossFade
、rememberInfiniteTransition
、AnimatedContent
、updateTransition
和 animatedVisibility
。您可以執行以下操作:
- 逐格預覽轉場效果
- 檢查轉場效果中所有動畫的值
- 預覽初始狀態和目標狀態之間的轉場效果
- 一次檢查並協調多個動畫
開啟「Animation Preview」時,畫面上會顯示「Animations」窗格,讓您執行預覽畫面中的所有轉場效果。轉場效果和其中每個動畫值都會標示預設名稱。您可以在 updateTransition
和 AnimatedVisibility
函式中指定 label
參數來自訂標籤。詳情請參閱「Animation Preview」。

為您推薦
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-08-27 (世界標準時間)。
[[["容易理解","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 (世界標準時間)。"],[],[],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)"]]