title: How can I change the background color of a spinner popup?
body: <p>I'm trying to set the background color of a spinner popup but everything I've tried didn't work properly.</p>
  <p>This is the spinner control:</p>
  <pre><code>&lt;Spinner
    android:id=&quot;@+id/myspinner&quot;
    android:layout_width=&quot;fill_parent&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:background=&quot;@null&quot;
    android:drawSelectorOnTop=&quot;true&quot; /&gt;
  </code></pre>
  <p>When I click on it, it shows a popup with a white background, and I want to change that.</p>
  <p>The xml line which I use to populate the popup is:</p>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
    android:layout_width=&quot;wrap_content&quot;
    android:layout_height=&quot;wrap_content&quot;
    android:background=&quot;@drawable/list_selector&quot;      
    android:paddingBottom=&quot;@dimen/padding_medium&quot;
    android:layout_marginBottom=&quot;@dimen/padding_medium&quot;
    android:orientation=&quot;vertical&quot;&gt;
    
    ..........
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>and the drawable background list_selector.xml:</p>
  <pre><code>&lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt; 
    &lt;!-- Pressed --&gt;
    &lt;item 
      android:state_pressed=&quot;true&quot; 
      android:drawable=&quot;@color/green&quot; /&gt; &lt;!--  @drawable/tab_press --&gt;
  
    &lt;!-- Selected --&gt;
    &lt;item 
      android:state_selected=&quot;true&quot; 
      android:drawable=&quot;@color/green&quot; /&gt; &lt;!--  @drawable/tab_press --&gt;
   
  &lt;/selector&gt; 
  </code></pre>
  <p>Adding a default state to the above xml is ok, but the spinner main control shows the item with that background color, and I don't want that.</p>
  <p>Another thing I've tried is to set the application background color to black in styles.xml</p>
  <pre><code>&lt;style name=&quot;AppTheme&quot; parent=&quot;android:Theme.Light&quot;&gt;
       &lt;item name=&quot;android:background&quot;&gt;#000000&lt;/item&gt;
       &lt;item name=&quot;android:textColor&quot;&gt;#FFFFFF&lt;/item&gt;
       &lt;item name=&quot;android:typeface&quot;&gt;sans&lt;/item&gt; 
  &lt;/style&gt;
  </code></pre>
  <p>That overrides the popup background too, but it has undesirable collateral effects. Is there any way to accomplish this in a simple way?</p>
  <p>PS: <strong>I'm using API level 10 (2.3.3)</strong> and the attribute <code>android:popupBackground</code> doesn't exist.</p>