網頁指標
透過集合功能整理內容
你可以依據偏好儲存及分類內容。

HorizontalPageIndicator 元件用來代表目前有效的網頁及重疊元素的總頁數。
在圓形螢幕上,頁面指標會呈現曲線。此行為是在 HorizontalPageIndicator
類別中實作。當中包含一項有效指標和至少一個閒置指標。
A. 閒置指標
B.使用中的指標
運用指標讓使用者瞭解您在輪轉介面中的位置。將內容的方向從左到右。
用法

自動調整版面配置
為取得光學平衡,圓點中心 (指標) 的周長對齊或位於圓形格線附近,這表示當螢幕尺寸增加時,曲線角度會稍微變更。

這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。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,["# Page indicators\n\nThe [HorizontalPageIndicator](/reference/kotlin/androidx/wear/compose/material/package-summary#HorizontalPageIndicator(androidx.wear.compose.material.PageIndicatorState,androidx.compose.ui.Modifier,androidx.wear.compose.material.PageIndicatorStyle,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Shape)) component is used to represent the currently active page and total pages of an overlay. \nOn round displays, a page indicator is curved. This behavior is implemented in the `HorizontalPageIndicator` class. It is made up of one active indicator and at least one inactive indicator. \n\n**A. Inactive Indicator\nB. Active Indicator**\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nUse indicators to show users where you are in a carousel. Orient content from left to right.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n**Usage**\n---------\n\n**Adaptive layouts**\n--------------------\n\nCentre of the dot (indicator) circumference aligns near or on the circular grid for optical balance, this means the curve angle changes slightly as the screen size increases.\n\nThe pagination will always show a maximum of 6 dots, no matter the size of the screen.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]