測試預測返回手勢動畫
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如果您仍使用 Android 13 或 Android 14,可以測試返回主畫面動畫。
如要測試這個動畫,請按照下列步驟操作:
- 在裝置上,依序前往「設定」>「系統」>「開發人員選項」。
- 選取「預測返回操作動畫」。
- 啟動更新後的應用程式,然後使用返回手勢查看實際運作情形。
在 Android 15 以上版本中,這項功能預設為啟用。
其他資源
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-08-21 (世界標準時間)。
[null,null,["上次更新時間:2025-08-21 (世界標準時間)。"],[],[],null,["# Test the predictive back gesture animation\n\nIf you still use Android 13 or Android 14, you can test the back-to-home\nanimation.\n\nTo test this animation, follow these steps:\n\n1. On your device, go to **Settings \\\u003e System \\\u003e Developer options**.\n2. Select **Predictive back animations**.\n3. Launch your updated app, and use the back gesture to see it in action.\n\nOn Android 15 and later, this feature is enabled by default.\n\nAdditional resources\n--------------------\n\n- [Add predictive back animations codelab](/codelabs/predictive-back#0)\n- [Advanced layout animations in Compose video](https://www.youtube.com/watch?v=PR6rz1QUkAM&t=1195s&ab_channel=AndroidDevelopers)"]]