步进控件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

步进控件可让用户从一系列值中进行选择。
使用步进控件实现全屏控制体验,让用户能够从一系列值中进行选择。
解剖学
A. 调高按钮
B. 标签或条状标签
C. 调低按钮
使用方法
请参阅以下示例,了解如何使用步进控件。

请查看 GitHub 上的 Horologist 库,该库提供了音量控制屏幕的实现。
自适应布局

自适应行为
步进组件会填充可用高度和宽度,因此元素之间的间距由屏幕尺寸和可用高度决定。

本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Steppers\n\nThe [Stepper](/reference/kotlin/androidx/wear/compose/material/package-summary#Stepper(kotlin.Float,kotlin.Function1,kotlin.Int,kotlin.Function0,kotlin.Function0,androidx.compose.ui.Modifier,kotlin.ranges.ClosedFloatingPointRange,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Function1)) allow users to make a selection from a range of values. \nUse steppers for a full-screen control experience that allows users to make a selection from a range of values.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAnatomy\n-------\n\n**A. Increase button\nB. Label or chip\nC. Decrease button**\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nUsage\n-----\n\nSee the following examples of how to use steppers.\n\nCheck out the [Horologist library](https://github.com/google/horologist#-audio-and-ui) on GitHub that offers an implementation of a volume control screen.\n\nAdaptive layouts\n----------------\n\nResponsive behavior\n-------------------\n\nThe stepper component fills available height and width, therefore the gap between elements is determined by the screen size and the available height."]]