

In particular you need to define the list of items that the Spinner will display when the user activates it. Putting a Spinner into you project is as easy as using the toolbox in the designer but you can't get away without some Java to make it all work. The spinner presents a set of alternatives to the user and lets them select one. Let's start with the Spinner and deal with the Pickers in the next chapter. Of the pickers the date and time pickers are quite well known but for an odd set of reasons the number picker has long been neglected. Pickers are similar to spinners in they allow the user to pick an item, but in this case the items are more narrowly defined - a date, a time or a number. They allow the user to pick from a list of possible items. Spinners are what are referred to as drop down lists or something similar in other UIs. If you are interested in creating custom template also see: Third Edition Is now available in paperback and ebook.

In the next two chapters of our ebook on Android the easy way, we look at spinners and pickers, the next step up from buttons and text controls. Working with Android Studio makes building the UI easy with an interactive editor, but you still need to find out how to handle the things it isn't quite so good at.
