Slice
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Slice 是一種 UI 範本,可從 Google 搜尋應用程式以及 Google 助理等其他位置,顯示應用程式中的豐富、動態和互動式內容。Slices 可讓使用者在全螢幕應用程式體驗之外進行互動,藉此更快完成工作。您可以建構 Slice 來加強應用程式動作。
Android Jetpack 內建 Slice 支援功能,可全面擴充至 Android 4.4,觸及約 95% 的 Android 使用者。
歡迎參閱入門指南,立即開始建構 Slice。
豐富且靈活的版面配置
透過範本,您可以使用顏色、文字、圖像、影片等元素自訂 Slice,以符合應用程式的設計。

動態和互動式內容
Slice 支援即時資料、捲動內容、內嵌動作,以及深層連結至應用程式內。Slice 也可以包含切換和滑桿等互動式控制項。

這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Slices are UI templates that can display rich, dynamic, and interactive content\nfrom your app from within the Google Search app and also in other places like\nthe Google Assistant. Slices can help users perform tasks faster by enabling\nengagement outside of the fullscreen app experience. You can build Slices as\nenhancements to [App Actions](/guide/actions).\n\nSupport for Slices is built into [Android Jetpack](/jetpack) and can extend all\nthe way back to Android 4.4, reaching approximately 95% of all Android users.\n\nCheck out the [getting started guide](/guide/slices/getting-started) to start\nbuilding Slices today.\n\nRich and flexible layouts\n-------------------------\n\nUsing [templates](/guide/slices/templates), you can customize your Slices with\ncolor, text, imagery, video, and more to match your app's design.\n\n\nDynamic and interactive content\n-------------------------------\n\nSlices support live-data, scrolling content, inline actions, and deep-linking\ninto your app. Slices can also contain interactive controls like toggles and\nsliders."]]