1page.title=Pickers 2@jd:body 3 4<p>Pickers provide a simple way to select a single value from a set. In addition to touching the 5up/down arrow buttons, it's possible to set the desired value from the keyboard or via a swipe 6gesture.</p> 7 8<div class="layout-content-row"> 9 <div class="layout-content-col span-6"> 10 11 <img src="{@docRoot}design/media/picker_space.png"> 12 13 </div> 14 <div class="layout-content-col span-6"> 15 16<h4>Space considerations</h4> 17<p>Pickers can be used inline on a form, but their relatively large footprint is best suited for 18display in a dialog. For inline display, consider using more compact controls such as text fields or 19spinners.</p> 20 21 </div> 22</div> 23 24<h2 id="date-time">Date and time pickers</h2> 25 26<p>Android provides these as ready-to-use dialogs. Each picker is a dialog with a set of controls for 27entering the parts of the date (month, day, year) or time (hour, minute, AM/PM). Using these in your 28app helps ensure that a user's specification of a data or time input is valid and formatted 29correctly. The format of a time and date picker adjusts automatically to the locale.</p> 30 31<img src="{@docRoot}design/media/picker_datetime.png"> 32 33 34<div class="note develop"> 35<p><strong>Developer Guide</strong></p> 36 <p>For information about how to create date and time pickers, 37 see the <a href="{@docRoot}guide/topics/ui/controls/pickers.html">Pickers</a> API guide.</p> 38</div> 39