blob: 860a126fa44dd22f28b200e9b0c9c8f9d2ea46e0 [file] [log] [blame]
Roman Nurikb99ae732012-03-06 12:26:15 -08001page.title=Pickers
Joe Fernandez33baa5a2013-11-14 11:41:19 -08002page.tags=datepicker,timepicker
Roman Nurikb99ae732012-03-06 12:26:15 -08003@jd:body
4
Scott Maincbcd17d2013-05-14 08:46:55 -07005<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/pickers.html">
6 <div>
7 <h3>Developer Docs</h3>
8 <p>Pickers</p>
9 </div>
10</a>
11
Roman Nurikb99ae732012-03-06 12:26:15 -080012<p>Pickers provide a simple way to select a single value from a set. In addition to touching the
13up/down arrow buttons, it's possible to set the desired value from the keyboard or via a swipe
14gesture.</p>
15
16<div class="layout-content-row">
Roman Nurikb99ae732012-03-06 12:26:15 -080017 <div class="layout-content-col span-6">
18
19 <img src="{@docRoot}design/media/picker_space.png">
20
21 </div>
Scott Main59ea1152012-06-15 14:52:01 -070022 <div class="layout-content-col span-6">
Roman Nurikb99ae732012-03-06 12:26:15 -080023
24<h4>Space considerations</h4>
25<p>Pickers can be used inline on a form, but their relatively large footprint is best suited for
26display in a dialog. For inline display, consider using more compact controls such as text fields or
27spinners.</p>
28
29 </div>
30</div>
31
32<h2 id="date-time">Date and time pickers</h2>
33
34<p>Android provides these as ready-to-use dialogs. Each picker is a dialog with a set of controls for
35entering the parts of the date (month, day, year) or time (hour, minute, AM/PM). Using these in your
36app helps ensure that a user's specification of a data or time input is valid and formatted
37correctly. The format of a time and date picker adjusts automatically to the locale.</p>
38
39<img src="{@docRoot}design/media/picker_datetime.png">
Scott Maind4cc9422012-10-03 18:47:08 -070040