title: Drawable Resource Not Found
body: <p>All I am attempting to implement a selector drawable resource for a custom <code>ArrayAdapter</code>. I am consistently getting a <code>android.content.res.Resources$NotFoundException: File res/drawable/list_selector.xml from drawable resource ID #0x7f020</code></p>
  
  <p>Could anyone offer suggestions?</p>
  
  <p>I have two xml files:</p>
  
  <p>res/drawable/list_selector.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_checked="true" android:color="@android:color/white" /&gt;
      &lt;item android:state_checked="false" android:color="@android:color/black" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>res/layout/list_item.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:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="horizontal" &gt;
  
      &lt;TextView 
          android:id="@+id/casualty_text_view"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@drawable/list_selector"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Finally, my code loads the list item as follows:</p>
  
  <pre><code>    public View getView(int position, View convertView, ViewGroup parent) {
          // TODO Auto-generated method stub
          TCCC cur_object = getItem(position);
  
          View cur_view = convertView;
          if(cur_view == null)
          {
              System.out.println("Inflating!");
              cur_view = View.inflate(getContext(), R.layout.list_item, null);
              String text_value = (cur_object.m_name.length() == 0) ? "New Casualty" : cur_object.m_name;
  
              TextView name_box = (TextView)cur_view.findViewById(R.id.casualty_text_view);
              if(name_box != null)
                  name_box.setText(text_value);
          }
  
          return cur_view;
      }
  </code></pre>