1 page.title=Spinners 2 @jd:body 3 4 <p>Spinners provide a quick way to select one value from a set. In the default state, a spinner shows 5 its currently selected value. Touching the spinner displays a dropdown menu with all other available 6 values, from which the user can select a new one.</p> 7 8 9 <div class="layout-content-row"> 10 <div class="layout-content-col span-6"> 11 12 <img src="{@docRoot}design/media/spinners_form.png"> 13 14 <h4>Spinners in forms</h4> 15 <p>Spinners are useful for data picking in forms. They are compact and integrate nicely with other 16 components. Use spinners in forms for both simple data input and in combination with other input 17 fields. For example, a text field might let you edit an email address for a contact, while its 18 associated spinner allows you to select whether it's a Home or Work address.</p> 19 20 </div> 21 <div class="layout-content-col span-7"> 22 23 <img src="{@docRoot}design/media/spinners_actionbar.png"> 24 25 <h4>Spinners in action bars</h4> 26 <p>Use spinners in action bars to switch views. For example, Gmail uses a spinner to permit switching 27 between accounts or commonly used labels. Spinners are useful when changing the view is important to 28 your app, but not necessarily a frequent occurrence. In cases where view switching is frequent, use 29 tabs.</p> 30 31 </div> 32 </div> 33 34 <img src="{@docRoot}design/media/spinners_hololightanddark.png"> 35 <div class="figure-caption"> 36 Spinners in the Holo Dark and Holo Light themes, in various states. 37 </div> 38