title: Difference between android.R.layout.simple_spinner_dropdown_item and android.R.layout.simple_spinner_item
body: <p>Here's a sample code of using spinner in android :</p>
  
  <pre><code>Spinner spinner = (Spinner) findViewById(R.id.spinner);
  ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(this, R.array.gender_array, android.R.layout.simple_spinner_item);
  adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  spinner.setAdapter(adapter);
  </code></pre>
  
  <p>I have understood that we need to specify a layout for the datarows in the adapter</p>
  
  <p>But why again using <code>setDropDownViewResource()</code> method. I mean what does this function do and also tell me how it is different from the constructor of the <code>ArrayAdapter</code>.</p>
  
  <p>I have gone through the documentation, but didn't understand completely.</p>