title: Spinner Theme is dark in Android
body: <p>I am trying to change the toolbar spinner dropdown theme strangely this is not happening. It is coming up always dark when I click on the spinner. I would like to have the background grey and text black. </p>
  
  <p>I don't have any actionbar. I am setting everything through toolbar.</p>
  
  <p>Hence I tried the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:local="http://schemas.android.com/apk/res-auto"
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="@color/colorPrimary"
      android:minHeight="?attr/actionBarSize"
      local:popupTheme="@style/ThemeOverlay.AppCompat.Light"
      local:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"&gt;
  
      &lt;RelativeLayout
          android:id="@+id/relativeLayoutID"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
  
          &lt;TextView
              android:id="@+id/toolbar_title"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_centerVertical="true"
              android:layout_gravity="left|center"
              android:text="@string/register_title"
              android:textColor="@color/whiteText"
              android:textSize="@dimen/text_size_medium" /&gt;
  
          &lt;Spinner
              android:id="@+id/spinner"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:minWidth="80dp"
              android:spinnerMode="dropdown"
              android:visibility="gone" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/android.support.v7.widget.Toolbar&gt;
  </code></pre>
  
  <p>Style xml:</p>
  
  <pre><code> &lt;resources&gt;
  
  &lt;style name="Theme.default" parent="Theme.AppCompat.Light.NoActionBar"&gt;
      &lt;item name="md_widget_color"&gt;@color/numbertext&lt;/item&gt;
      &lt;item name="android:colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
      &lt;item name="android:colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
      &lt;item name="android:windowContentOverlay"&gt;@drawable/toolbar_dropshadow&lt;/item&gt;
      &lt;item name="android:windowBackground"&gt;@android:color/white&lt;/item&gt;
      &lt;item name="android:editTextColor"&gt;@android:color/background_dark&lt;/item&gt;
      &lt;item name="android:textColor"&gt;@android:color/background_dark&lt;/item&gt;
      &lt;item name="colorControlNormal"&gt;@android:color/background_dark&lt;/item&gt;
      &lt;item name="colorControlActivated"&gt;@color/orangeText&lt;/item&gt;
      &lt;item name="colorControlHighlight"&gt;@color/orangeText&lt;/item&gt;
      &lt;item name="android:statusBarColor"&gt;@color/colorPrimary&lt;/item&gt;
  
  &lt;/style&gt;
  
  &lt;style name="Widget.MyApp.HeaderBar.Spinner" parent="Widget.AppCompat.Light.Spinner.DropDown.ActionBar"&gt;
      &lt;item name="android:background"&gt;?android:selectableItemBackground&lt;/item&gt;
      &lt;item name="android:dropDownSelector"&gt;?android:selectableItemBackground&lt;/item&gt;
      &lt;item name="android:divider"&gt;@color/blackText&lt;/item&gt;
      &lt;item name="android:overlapAnchor"&gt;true&lt;/item&gt;
  &lt;/style&gt;&lt;/resources&gt;
  </code></pre>
  
  <p><strong>Update:</strong></p>
  
  <p>Added the following theme:</p>
  
  <pre><code>&lt;style name="MyDarkToolbarStyle" parent="@style/Widget.AppCompat.Spinner.DropDown.ActionBar"&gt;
          &lt;item name="background"&gt;?android:selectableItemBackground&lt;/item&gt;
          &lt;item name="android:popupBackground"&gt;@color/layoutbackground&lt;/item&gt;
          &lt;item name="android:dropDownSelector"&gt;?android:selectableItemBackground&lt;/item&gt;
          &lt;item name="android:divider"&gt;@color/blackText&lt;/item&gt;
          &lt;item name="android:overlapAnchor"&gt;true&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>And applied it to the spinner:</p>
  
  <pre><code>&lt;Spinner
              android:id="@+id/spinner"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:minWidth="80dp"
  style="@style/MyDarkToolbarStyle"
              android:spinnerMode="dropdown"
              android:visibility="gone" /&gt;
  </code></pre>
  
  <p>With above settings I could change the dropdown background color but not I am not able to get ripple effect on selection this used to happen before applying the theme to the spinner? </p>