Home | History | Annotate | Download | only in building-blocks
      1 page.title=Switches
      2 @jd:body
      3 
      4 <p>Switches allow the user to select options. There are three kinds of switches: checkboxes, radio
      5 buttons, 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
      9 turn 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
     16 selection if you think that the user needs to see all available options side-by-side. Otherwise,
     17 consider 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