StateListDrawable
<p>I have a listView built in a ListActivity. I want the background of my rows to change when the item is pressed.</p>

<p>So I wrote in my ListActivity : this.getListView().setSelector(R.drawable.my_custom_selector);</p>

<p>This is my_custom_selector.xml :</p>

<pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
    &lt;item android:state_pressed="true"
          android:drawable="@drawable/selector" /&gt;
&lt;/selector&gt;
</code></pre>

<p>drawable/selector is a selector.9.png</p>

<p>The problem is that nothing happens.</p>

<p>BUT : when I replace this drawable with a color all of the screen gets this color when I press a row.</p>

<p>Can you help me ? </p>
