No resource found that matches the given name (styles)
<p>I'm trying to add a new style to my styles.xml file.</p>

<p>I wrote this in res/values/styles.xml</p>

<pre><code>&lt;style name="spinnerSettings"&gt; 
    &lt;item name="android:textColor"&gt;#000000&lt;/item&gt;
    &lt;item name="android:background"&gt;#FFFFFF&lt;/item&gt;
&lt;/style&gt;
</code></pre>

<p>When i try to add my style to a spinner (created inside res/layout/activity_settings.xml)</p>

<pre><code> &lt;Spinner
    style="@styles/spinnerSettings"     
    android:id="@+id/levelSpinner"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"      
    android:spinnerMode="dialog"
    android:layout_marginLeft="10dp"
    android:layout_marginTop="10dp"
    android:layout_marginRight="10dp"
    android:padding="5dp"       
    android:drawSelectorOnTop = "true" /&gt;
</code></pre>

<p>I get this error:</p>

<p><strong>error: Error: No resource found that matches the given name (at 'style' with value '@styles/spinnerSettings')</strong></p>

<p>here <code>style="@styles/spinnerSettings"</code>  </p>
