title: Android: Need to change the spinner background color
body: <p>I'm using three spinners inside of my XML file. Want to change spinner color until press the next spinner. </p>
  
  <p>This is my xml I used:</p>
  
  <pre><code>&lt;Spinner
      android:id="@+id/spinner13"
      android:drawSelectorOnTop="true"
      android:background="@drawable/mybg"
      android:layout_width="80dp"
      android:layout_height="wrap_content"
      android:textColor="#0000FF" /&gt;
  
  &lt;Spinner
      android:id="@+id/spinner23"
      android:drawSelectorOnTop="true"
      android:background="@drawable/mybg"
      android:layout_width="80dp"
      android:layout_height="wrap_content"
      android:textColor="#0000FF" /&gt;
  &lt;Spinner
      android:id="@+id/spinner33"
      android:drawSelectorOnTop="true"
      android:background="@drawable/mybg"
      android:layout_width="80dp"
      android:layout_height="wrap_content"
      android:textColor="#0000FF"/&gt;
  </code></pre>
  
  <p>and this is mybg.xml </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;item android:state_pressed="true" android:drawable="@style/AppBaseTheme.Yellow"/&gt;
      &lt;item android:state_selected="true" android:drawable="@style/AppBaseTheme.Yellow" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>And Style :</p>
  
  <pre><code>&lt;resources&gt;
      &lt;style name="AppBaseTheme" parent="android:Theme.Light"&gt;
      &lt;/style&gt;
      &lt;!-- Application theme. --&gt;
      &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
      &lt;/style&gt;
      &lt;style name="AppBaseTheme.Yellow"&gt;
      &lt;item name="android:background"&gt;#FFAA00&lt;/item&gt;
  &lt;/style&gt; 
  &lt;/resources&gt;
  </code></pre>