2019-09-04 18:07:59 -04:00

38 lines
1.4 KiB
Markdown

<!--docs:
title: "Pickers"
layout: detail
section: components
excerpt: "Pickers are modals that request a user choose a date or time."
iconId: picker
path: /catalog/picker
-->
Warning: The Picker API is not stable, yet. Expect significant changes to class names, theme names, style names, attributes, and customization options.
## Date Pickers
Date Pickers allow users to select a single date or date range.
## Design
[Material Design: Pickers](https://material.io/design/components/pickers.html)
## Demo
Date Pickers are under active development. You can see the current version of
the
[Material Picker Demo](https://github.com/material-components/material-components-android/tree/master/catalog/java/io/material/catalog/datepicker/DatePickerMainDemoFragment.java)
in the Material Android Catalog. The demo launches and listens to material
pickers with customization options for dialog and fullscreen.
## Code
The
[Picker Package](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/datepicker)
contains most of the code for this component, with the main entry point being
[MaterialDatePicker](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/datepicker/MaterialDatePicker.java).
## Time Pickers
Time Pickers are currently not under development.