blob: b2946897fed19dd763d6cdea2e3ac8e14f021468 [file] [log] [blame]
Roman Nurikb99ae732012-03-06 12:26:15 -08001page.title=Switches
Joe Fernandez33baa5a2013-11-14 11:41:19 -08002page.tags=switch,checkbox,radiobutton,button
Roman Nurikb99ae732012-03-06 12:26:15 -08003@jd:body
4
5<p>Switches allow the user to select options. There are three kinds of switches: checkboxes, radio
6buttons, and on/off switches.</p>
Scott Maincbcd17d2013-05-14 08:46:55 -07007
8
9
Roman Nurikb99ae732012-03-06 12:26:15 -080010<h2 id="checkboxes">Checkboxes</h2>
11
Scott Maincbcd17d2013-05-14 08:46:55 -070012<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/checkbox.html">
13 <div>
14 <h3>Developer Docs</h3>
15 <p>Checkboxes</p>
16 </div>
17</a>
18
Roman Nurikb99ae732012-03-06 12:26:15 -080019<p>Checkboxes allow the user to select multiple options from a set. Avoid using a single checkbox to
20turn an option off or on. Instead, use an on/off switch.</p>
21
Roman Nurikb99ae732012-03-06 12:26:15 -080022 <img src="{@docRoot}design/media/switches_checkboxes.png">
Roman Nurikb99ae732012-03-06 12:26:15 -080023
Scott Maincbcd17d2013-05-14 08:46:55 -070024
25
Roman Nurikb99ae732012-03-06 12:26:15 -080026<h2 id="radio-buttons">Radio Buttons</h2>
27
Scott Maincbcd17d2013-05-14 08:46:55 -070028<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/radiobutton.html">
29 <div>
30 <h3>Developer Docs</h3>
31 <p>Radio Buttons</p>
32 </div>
33</a>
34
Roman Nurikb99ae732012-03-06 12:26:15 -080035<p>Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive
36selection if you think that the user needs to see all available options side-by-side. Otherwise,
37consider a spinner, which uses less space.</p>
38
Roman Nurikb99ae732012-03-06 12:26:15 -080039 <img src="{@docRoot}design/media/switches_radios.png">
Roman Nurikb99ae732012-03-06 12:26:15 -080040
Scott Maincbcd17d2013-05-14 08:46:55 -070041
42
Roman Nurikb99ae732012-03-06 12:26:15 -080043<h2 id="switches">On/off Switches</h2>
44
Scott Maincbcd17d2013-05-14 08:46:55 -070045<a class="notice-developers" href="{@docRoot}guide/topics/ui/controls/togglebutton.html">
46 <div>
47 <h3>Developer Docs</h3>
48 <p>Toggle Buttons</p>
49 </div>
50</a>
51
Roman Nurikb99ae732012-03-06 12:26:15 -080052<p>On/off switches toggle the state of a single settings option.</p>
53
Roman Nurikb99ae732012-03-06 12:26:15 -080054 <img src="{@docRoot}design/media/switches_switches.png">
Scott Maind4cc9422012-10-03 18:47:08 -070055
Scott Maincbcd17d2013-05-14 08:46:55 -070056