title: Android LinearLayout with color resource: What am I doing wrong?
body: <p>I followed <a href="http://developer.android.com/guide/topics/resources/color-list-resource.html" rel="noreferrer">this tutorial</a> to create a color state list for a particular Android view. I just want it to highlight when clicked so the user knows why the screen just changed. </p>
  
  <p>When the view is rendered, I get the following error:</p>
  
  <p>org.xmlpull.v1.XmlPullParserException: Binary XML file line #3:  tag requires a 'drawable' attribute or child tag defining a drawable</p>
  
  <p>My color XML (in res/color/viewcolor.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:color="#ff33ffff"/&gt; &lt;!-- pressed --&gt;
      &lt;item android:color="#ff000000"/&gt; &lt;!-- default --&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>My layout XML (in res/layout/myview.xml):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
          android:id="@+id/myview"
      android:orientation="horizontal"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:gravity="top"
      android:background="@color/viewcolor"&gt;
      &lt;!--crap in the layout--&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>What did I miss?</p>