State_pressed change color of a view
<p>I have this <code>selector</code> xml file which is applied to a <code>RelativeLayout</code> as a background element:</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"&gt;
        &lt;shape&gt;
            &lt;solid
                android:color="#449def" /&gt;
            &lt;stroke
                android:width="1dp"
                android:color="#2f6699" /&gt;
            &lt;corners
                android:radius="3dp" /&gt;
            &lt;padding
                android:left="10dp"
                android:top="10dp"
                android:right="10dp"
                android:bottom="10dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;

     &lt;item android:state_pressed="false"&gt;
        &lt;shape&gt;
            &lt;gradient
                android:startColor="#f3ae1b"
                android:endColor="#bb6008"
                android:angle="270" /&gt;
            &lt;stroke
                android:width="1dp"
                android:color="#bb6008" /&gt;
            &lt;corners
                android:radius="10dp" /&gt;
            &lt;padding
                android:left="0dp"
                android:top="10dp"
                android:right="0dp"
                android:bottom="10dp" /&gt;
        &lt;/shape&gt;
    &lt;/item&gt;
&lt;/selector&gt;
</code></pre>

<p>My question is: Why doesnt the color of this layout change when the state is changed?  </p>
