應用程式
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
如果作業比較複雜,運用小工具、資訊方塊或通知訊息皆無法處理,您可以在畫面上運用應用程式突顯重點。Wear OS 上的應用程式與行動應用程式的主要使用者介面相似。您可以使用資訊方塊、小工具和通知訊息等途徑完成簡易工作,但將這些途徑與應用程式連結則可執行更複雜的工作。
請查看下列原則和用途,進一步瞭解應用程式。
使用者體驗原則
設計應用程式時請謹記以下原則:
- 突顯重點
- 將應用程式集中在重要工作上,協助使用者在幾秒內完成工作,避免不舒服的姿勢或手臂疲勞
- 淺層和線性
- 避免使用兩層以上的階層結構,以內嵌方式導覽
- 捲動
- 提供可以捲動的檢視畫面,這樣使用者就可以用自然的姿勢在手錶上查看更多內容
使用應用程式的時機
在下列情況下使用應用程式:
- 其他資訊
- 將應用程式集中在重要工作上,協助使用者在幾秒內完成工作,避免不舒服的姿勢或手臂疲勞。
- 享受更豐富的互動體驗
- 提供比小工具或資訊方塊更豐富的互動方式。
- 調整偏好設定
- 提供教育和偏好存取權。
建構應用程式
Wear OS 支援兩種建立應用程式的獨特方法:
Compose for Wear OS 是新型宣告式 UI 工具包,建議您使用這個工具包建構 Wear OS 應用程式。
在大多數情況下,以 Compose 為基礎的使用者介面會有較少程式碼,也能加快 Android 應用程式的開發程序。如要進一步瞭解宣告式 UI 架構的一般優點,請參閱為什麼要選擇使用 Compose。
Wear OS 的 Compose Material Catalog 採用質感樣式,包括內建無障礙功能並實作材質主題設定,可讓您自訂品牌的設計。Compose for Wear OS 提供的元件比 Views 更多,原本就是用來協助您打造符合 Wear OS 設計指南規定的使用者體驗。
如果現有的 Wear OS 應用程式具有大型的檢視畫面式程式碼集,您可以使用 Compose 互通性 API 逐步採用 Compose,而不必重新編寫每個程式碼集。
使用 Compose 建立應用程式的指南
- 在 Wear OS 上使用 Jetpack Compose
- 瞭解如何使用 Compose for Wear OS 進行建構。
- 建立清單
- 瞭解如何建立穿戴式裝置的最佳清單。
- 使用 Compose for Wear OS 導覽
- 進一步瞭解如何在 Compose 中建構導覽功能。
- Wear OS 的 Compose 效能
- 進一步瞭解效能並測試應用程式效能。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-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-07-27 (世界標準時間)。"],[],[],null,["# Apps\n\nAn app is a focused view that handles tasks that are too complex for a complication,\ntile, or notification. Apps on Wear OS are similar to a mobile app's main user interface. Use\nsurfaces such as tiles, complications, and notifications to accomplish simple tasks, but link\nthese surfaces into an app to carry out more complex tasks.\n\n\nReview the following principles and use cases for a better understanding of apps.\n\nUX principles\n-------------\n\n\nDesign apps with the following principles in mind:\n\nFocus\n: Focus apps on critical tasks to help people get things done within seconds to avoid\n ergonomic discomfort or arm fatigue\n\nShallow and linear\n: Avoid hierarchies deeper than two levels. Show navigation inline\n\nScroll\n: Views can scroll. This is a natural gesture for users to see more content on the watch\n\nWhen to use an app\n------------------\n\n\nUse apps in the following situations:\n\nFor additional info\n: Focus apps on critical tasks to help people get things done within seconds to avoid\n ergonomic discomfort or arm fatigue.\n\nFor richer interactions\n: To provide richer interaction than a complication or Tile.\n\nFor adjusting preferences\n: To provide access to education and preferences.\n\nBuilding an app\n---------------\n\nWear OS supports two distinctive ways of building an app:\n\n- [Compose-based UI](/training/wearables/compose)\n- [View-based UI](/training/wearables/views)\n\nCompose for Wear OS is a modern declarative UI toolkit and is the recommended\napproach for building apps on Wear OS.\n\nCompose-based UIs in most cases result in less code and accelerates the development process of\nAndroid apps as a whole. See [Why Compose](/jetpack/compose/why-adopt) for more\ninformation on the general advantages of a declarative UI framework.\n\nThe Compose Material Catalog for Wear OS follows material styling, includes built in\naccessibility, and implements material theming, which allows you to customize the design for your\nbrand. Compose for Wear OS offers more components than are available with Views, and is designed\nto help you create user experiences that conform to Wear OS design guidelines.\n\nIf you have an existing Wear OS app with a large view-based codebase, it's possible to gradually\nadopt Compose by using the\n[Compose Interoperability APIs](/jetpack/compose/interop/interop-apis) rather than\nhaving to rewrite the whole codebase.\n\nGuides for creating apps with Compose\n-------------------------------------\n\n[Use Jetpack Compose on Wear OS](/training/wearables/apps/lists)\n: Learn how to build with Compose for Wear OS.\n\n[Create lists](/training/wearables/compose/lists)\n: Learn how to create lists that are optimized for wearable devices.\n\n[Navigating with Compose for Wear OS](/training/wearables/compose/navigation)\n: Learn more about building navigation in Compose.\n\n[Compose performance on Wear OS](/training/wearables/compose/performance)\n: Learn more about performance and testing your app performance."]]