位置指示器
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

PositionIndicator 组件会显示用户在列表或范围值中的位置。
如果您可以使用侧面旋转按钮 (RSB) 滚动、调整设置、控制音量或执行其他操作,请在列表中或其他上下文中使用位置指示器。
解剖学
使用方法
请参阅以下位置指示器示例。

大屏设备

自适应行为
位置指示器将在不同尺寸的屏幕上保持不变,这意味着曲线的角度会略有变化以保持一致。

位置指示器
指示器的弧形始终为 50 dp 高(不按比例缩放),这意味着随着尺寸增加,角度也会发生变化。
可以手动将外边距向下调整到 2 dp 以与 SysUI 一致。高度将固定为 50 dp。

Ctrl/RSB 指示符
指示器的弧形始终为 76 dp(不按比例缩放),这意味着随着尺寸的增加,角度会发生变化。
您可以:
- 手动将外边距向下调整到 2 dp 以与 SysUI 一致。高度将固定为 50 dp。
- 让指示灯位于屏幕的左侧或右侧。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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."]]