title: Why does the Spinner not contain my items?
body: <p>Hi
  i now looked at several examples of how to use the spinner. But it does not matter, whatever i try the spinner in the emulator does not show its conent...
  This is the code I use:</p>
  
  <pre><code>public class NewBooking extends Activity {
  
  private static List&lt;String&gt; l = new ArrayList&lt;String&gt;();
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.newbooking);
      String[] items = new String[] {"One", "Two", "Three"};
      Spinner spinner = (Spinner) findViewById(R.id.cmbNewBookingType);
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
                  android.R.layout.simple_spinner_item, items);
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      spinner.setAdapter(adapter);
  }
  }
  </code></pre>
  
  <p>I tought this code should add the items one, two and three in the spinner control but the control remains empty in the emulator...</p>
  
  <p>Any ideas what I may did wrong?</p>
  
  <p>Thanks!</p>