滚动
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
位置指示器可显示列表或范围值中的位置。

类型

音量控制
音量控制可显示音量的范围值。
|
滚动条
滚动条显示列表中的位置。
|
剖析

1. 音量控制
A. 轨道
B. 滑块
|
2. 滚动条
A. 轨道
B. 滑块
|
用法
请参阅以下滚动应用示例。

本页面上的内容和代码示例受内容许可部分所述许可的限制。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,["# Scroll\n\nThe [position indicator](/reference/kotlin/androidx/wear/compose/material/package-summary#PositionIndicator(androidx.wear.compose.material.PositionIndicatorState,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Boolean,kotlin.Boolean)) displays the location in a list or range value.\n\nTypes\n-----\n\n|---------------------------------------------------------------------------|------------------------------------------------------------|\n| **Volume control** Volume control displays the range value of the volume. | **Scroll bar** Scroll bar displays the location in a list. |\n\nAnatomy\n-------\n\n|-----------------------------------------|-------------------------------------|\n| **1. Volume control** A. Track B. Thumb | **2. Scroll bar** A. Track B. Thumb |\n\nUsage\n-----\n\nSee the following examples of scroll use cases."]]