Selector requires drawable attribute?
<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:color="#ff0000"/&gt; 
    &lt;item android:state_focused="true"
          android:color="#0000ff"/&gt;
    &lt;item android:color="#00ff00"/&gt;
&lt;/selector&gt;
</code></pre>

<p>I have this selector which I'm trying to use to change the background of a Linearlayout.  Whenever I try to apply it, however I always get this error message:</p>

<p><em>org.xmlpull.v1.XmlPullParserException: Binary XML file line #4:  tag requires a 'drawable' attribute or child tag defining a drawable</em></p>

<p>Obviously, it want me to use the drawable attibute but I'm not sure how to do that and change the background like I want to.</p>
