title: Extra Line in Android Spinner
body: <p>I'm writting an Android app. I have several spinners. Each one shows an extra line near the bottom and on the left and right sides of the spinner. Please see the image. Does anyone know why this is happening and how to fix it?</p>
  
  <p><img src="https://i.stack.imgur.com/wUsA0.png" alt="enter image description here"></p>
  
  <p>Here's the entry in the xml file that defines the spinner:</p>
  
  <pre><code>    &lt;Spinner android:id="@+id/formatSpinner"
           android:layout_width="fill_parent"
           android:layout_height="wrap_content"
           android:drawSelectorOnTop="true"
           android:prompt="@string/format_prompt"/&gt;
  </code></pre>
  
  <p>And here is the code that initializes it:</p>
  
  <pre><code>        cur = mDbHelper.fetchAllFormats();
          adapter = new SimpleCursorAdapter(this, android.R.layout.simple_spinner_item, cur,
                  new String[]{MoviesDbAdapter.KEY_NAME}, new int[]{android.R.id.text1});
          adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          formatSpinner.setAdapter(adapter);
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>Update1: I did some experimenting, and if the TextView that precedes the spinner is removed from the XML file, the spinner displays properly. I have no idea why this would be, any ideas?</p>
  
  <p>Update2: Also, if I add a layout_marginTop to the spinner, the problem goes away! This is really weird.</p>