mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
40 lines
1.0 KiB
Markdown
40 lines
1.0 KiB
Markdown
<!--docs:
|
||
title: "Slider"
|
||
layout: detail
|
||
section: components
|
||
excerpt: "Sliders allow users to make selections from a range of values."
|
||
iconId: slider
|
||
path: /catalog/slider/
|
||
-->
|
||
|
||
# Slider
|
||
|
||
Sliders allow users to make selections from a range of values.
|
||
|
||
## Design
|
||
|
||
[Material Design: Slider](https://material.io/go/design-sliders)
|
||
|
||
## Continuous slider
|
||
|
||
Continuous sliders allow users to make meaningful selections that don’t require
|
||
a specific value.
|
||
|
||
## Discrete slider
|
||
|
||
Discrete sliders display a numeric value label upon pressing the thumb, which
|
||
allows a user to input an exact value.
|
||
|
||
## Demo
|
||
|
||
The slider is under active development. You can see the current version of
|
||
the
|
||
[Slider Demo](https://github.com/material-components/material-components-android/tree/master/catalog/java/io/material/catalog/slider/)
|
||
in the Material Android Catalog.
|
||
|
||
## Code
|
||
|
||
The
|
||
[Slider Package](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/slider)
|
||
contains the code for this component.
|