2012-03-06 12:26:15 -08:00
|
|
|
page.title=Pickers
|
2013-11-14 11:41:19 -08:00
|
|
|
page.tags=datepicker,timepicker
|
2012-03-06 12:26:15 -08:00
|
|
|
@jd:body
|
|
|
|
|
2013-05-14 08:46:55 -07:00
|
|
|
<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/pickers.html">
|
|
|
|
<div>
|
|
|
|
<h3>Developer Docs</h3>
|
|
|
|
<p>Pickers</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
|
2014-02-08 20:29:06 -08:00
|
|
|
<p itemprop="description">Pickers provide a simple way to select a single value from a set. In addition to touching the
|
2012-03-06 12:26:15 -08:00
|
|
|
up/down arrow buttons, it's possible to set the desired value from the keyboard or via a swipe
|
|
|
|
gesture.</p>
|
|
|
|
|
|
|
|
<div class="layout-content-row">
|
|
|
|
<div class="layout-content-col span-6">
|
|
|
|
|
|
|
|
<img src="{@docRoot}design/media/picker_space.png">
|
|
|
|
|
|
|
|
</div>
|
2012-06-15 14:52:01 -07:00
|
|
|
<div class="layout-content-col span-6">
|
2012-03-06 12:26:15 -08:00
|
|
|
|
|
|
|
<h4>Space considerations</h4>
|
|
|
|
<p>Pickers can be used inline on a form, but their relatively large footprint is best suited for
|
|
|
|
display in a dialog. For inline display, consider using more compact controls such as text fields or
|
|
|
|
spinners.</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2 id="date-time">Date and time pickers</h2>
|
|
|
|
|
|
|
|
<p>Android provides these as ready-to-use dialogs. Each picker is a dialog with a set of controls for
|
|
|
|
entering the parts of the date (month, day, year) or time (hour, minute, AM/PM). Using these in your
|
|
|
|
app helps ensure that a user's specification of a data or time input is valid and formatted
|
|
|
|
correctly. The format of a time and date picker adjusts automatically to the locale.</p>
|
|
|
|
|
|
|
|
<img src="{@docRoot}design/media/picker_datetime.png">
|
2012-10-03 18:47:08 -07:00
|
|
|
|