Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
使用微光模式需求節省電力
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
所有錶面都應具備互動模式和微光模式。
Wear OS 應用程式品質指南規定,微光模式下只有 15% 的像素會亮起。
手錶通常會長時間處於微光模式,因此節省電力是這段時間的首要任務。
設計良好的微光模式畫面只會顯示必要資訊,並盡量減少亮起的像素數量。
如要實作元件,在環境和互動模式之間改變外觀,建議的做法是新增兩個元素,每個元素都有 Variant。在 Part* 或 Group 層級新增這項設定,可將 Variant 元素數量降到最低。
<Group name="logo_interactive" x="100" y="100" width="200" height="200">
<!-- Hide these elements in ambient mode -->
<Variant mode="AMBIENT" target="alpha" value="0" />
<!-- Components to show in interactive mode -->
</Group>
<Group name="logo_ambient" x="100" y="100" width="200" height="200" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<!-- Components to show in ambient mode -->
</Group>
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2026-05-11 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2026-05-11 (世界標準時間)。"],[],[]]