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

PositionIndicator 元件會顯示使用者在清單或範圍值中的位置。
當你可以使用側邊旋轉按鈕 (RSB) 捲動、調整設定、控制音量或執行其他動作時,請在清單或其他情況下使用位置指標。
圖解
使用方式
請參閱下列位置指標的範例。

大螢幕

回應式行為
不同螢幕大小上的位置指標會保持不變,這代表曲線的角度會稍有變化以配合螢幕尺寸。

位置指標
指標的弧形一律是 50 dp 高 (不按比例縮放),也就是說,只有您放大時的順位變化。
你可以手動將邊界調降至 2 dp,以便與 SysUI 相符。高度會維持在 50 dp。

控制/RSB 指標
指標的弧形一律為 76 dp 高 (不按比例縮放),意味著只有在您向上放大時強度的變化。
你可以:
- 根據 SysUI 手動將邊界向下調整至 2 dp。高度會維持在 50 dp。
- 將指標置於畫面左側或右側。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。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,["# Position indicator\n\nThe [PositionIndicator](/reference/kotlin/androidx/wear/compose/material/package-summary#PositionIndicator(androidx.compose.foundation.ScrollState,androidx.compose.ui.Modifier,kotlin.Boolean)) component displays the user's location in a list or range value. \nUse position indicators in list or for other contexts when you can use the rotating side button (RSB) to scroll, adjust settings, control volume, or do other actions.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAnatomy\n-------\n\nA. Track \nB. Indicator\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nUsage\n-----\n\nSee the following examples of position indicators.\n\nLarge screens\n-------------\n\n### **Responsive behavior**\n\nThe position indicator will remain the same size across screen sizes, this means the angle of the curve will change slightly to match.\n\n**Position indicator**\n\nThe arc of the indicator is always 50 dp high (doesn't scale proportionally) meaning only the degree changes as you go up in size. \n\n\nIt's possible to manually adjust the margin down to 2 dp to match SysUI. The height will remain fixed at 50 dp.\n\n**Control/RSB indicator**\n\nThe arc of the indicator is always 76 dp high (doesn't scale proportionally) meaning only the degree changes as you go up in size. \n\nIt's possible to:\n\n- Manually adjust the margin down to 2 dp to match SysUI. The height will remain fixed at 50 dp.\n- Have the indicator sit on the left or right side of the screen."]]