title: Error inflating class <unknown>
body: <p>I am trying to work my way in UI. I am trying to set stateListDrawable for list entries. All I am trying to do is change the color of the list item's layout when the item is pressed, and while the list item is pressed I want to change the color of the text as well.</p>
  
  <p>I am getting the following error stack:</p>
  
  <pre><code>E/AndroidRuntime(  360): FATAL EXCEPTION: main
  E/AndroidRuntime(  360): android.view.InflateException: Binary XML file line #8: Error inflating class &lt;unknown&gt;
  E/AndroidRuntime(  360):    at android.view.LayoutInflater.createView(LayoutInflater.java:513)
  E/AndroidRuntime(  360):    at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
  E/AndroidRuntime(  360):    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
  E/AndroidRuntime(  360):    at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
  E/AndroidRuntime(  360):    at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
  E/AndroidRuntime(  360):    at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
  E/AndroidRuntime(  360):    at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
  </code></pre>
  
  <p>The XML that is inflated is the following:</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/help_list_container"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:padding="5dip"
      android:background="@drawable/default_list_selection"&gt;
      &lt;TextView android:id="@+id/help_list_text" 
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textSize="16sp"
          android:textColor="@drawable/help_text_color"&gt;
      &lt;/TextView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I can get the program to work if I remove the <code>android:textColor</code> property from the xml. Is there a way I can use a stateListDrawable to control the texColor of a listitem from the xml?</p>
  
  <p>The stateListDrawable works for <code>android:background</code> in LinearLayout, but it won't for the textColor property of TextView. The state list xml is the following:</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:drawable="@color/white"
                android:state_pressed="true" /&gt;
      &lt;item android:drawable="@color/black" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>Any response would be appreciated.</p>