Added an adapter to the spinner.