switches.jd revision d4cc94299613ca73c941e3a9b5ed935f444b963d
1page.title=Switches 2@jd:body 3 4<p>Switches allow the user to select options. There are three kinds of switches: checkboxes, radio 5buttons, and on/off switches.</p> 6<h2 id="checkboxes">Checkboxes</h2> 7 8<p>Checkboxes allow the user to select multiple options from a set. Avoid using a single checkbox to 9turn an option off or on. Instead, use an on/off switch.</p> 10 11 <img src="{@docRoot}design/media/switches_checkboxes.png"> 12 13<h2 id="radio-buttons">Radio Buttons</h2> 14 15<p>Radio buttons allow the user to select one option from a set. Use radio buttons for exclusive 16selection if you think that the user needs to see all available options side-by-side. Otherwise, 17consider a spinner, which uses less space.</p> 18 19 <img src="{@docRoot}design/media/switches_radios.png"> 20 21<h2 id="switches">On/off Switches</h2> 22 23<p>On/off switches toggle the state of a single settings option.</p> 24 25 <img src="{@docRoot}design/media/switches_switches.png"> 26 27<div class="note develop"> 28<p><strong>Developer Guide</strong></p> 29 <p>For information about how to create these different switches, 30 see the <a href="{@docRoot}guide/topics/ui/controls/checkbox.html">Checkboxes</a>, 31 <a href="{@docRoot}guide/topics/ui/controls/radiobutton.html">Radio Buttons</a>, or 32 <a href="{@docRoot}guide/topics/ui/controls/togglebutton.html">Toggle Buttons</a> API guides.</p> 33</div> 34