Home | History | Annotate | Download | only in building-blocks
      1 page.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
      5 up/down arrow buttons, it's possible to set the desired value from the keyboard or via a swipe
      6 gesture.</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
     18 display in a dialog. For inline display, consider using more compact controls such as text fields or
     19 spinners.</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
     27 entering the parts of the date (month, day, year) or time (hour, minute, AM/PM). Using these in your
     28 app helps ensure that a user's specification of a data or time input is valid and formatted
     29 correctly. 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