Sliders
Stay organized with collections
Save and categorize content based on your preferences.
The Inline sliders allow users to make selections from a range of values.
Use inline sliders to select a value from a range, such as setting screen brightness or font size. Changes made with sliders are immediate, allowing the user to continue to make adjustments until they are satisfied. Don’t use sliders in situations where adjustments are not immediate.
Anatomy
A. Progress bar
B. Progress track
C. Container
D. Decrease icon
E. Increase icon
F. Spacer
Design recommendations
Segmented slider
Consider using a segmented slider if the range of values is between three and nine. If the range is greater than eight, segments will be too small to be visible.
Usage
Adaptive layouts
The step segments fills the available width, so it will appear longer depending on the size of the screen.
Fills available width
Sliders stretch to fill the available width on larger screens.
Icon (24 x 24 dp)
Container (52 x XX dp)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-07-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-12 UTC."],[],[]]