List selector android
<p>I've got two shapes like this:</p>

<p><strong>List_selector_focused.xml</strong>
    
    </p>

<pre><code>&lt;gradient
    android:startColor="#f5c98c"
    android:endColor="#f7ddb8"
    android:angle="90" /&gt;

&lt;/shape&gt;
</code></pre>

<p>and <strong>list_selector_pressed.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;shape xmlns:android="http://schemas.android.com/apk/res/android" 
   android:shape="rectangle"&gt;

&lt;gradient
    android:startColor="#fb9d23"
    android:endColor="#ffc579"
    android:angle="90" /&gt;

&lt;/shape&gt;
</code></pre>

<p>and my 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_pressed="true"
    android:drawable="@drawable/list_selector_pressed" /&gt;

&lt;item
    android:state_focused="true"
    android:drawable="@drawable/list_selector_focused" /&gt;

&lt;item
    android:drawable="@android:color/transparent" /&gt;

&lt;/selector&gt;
</code></pre>

<p>And to my listview, I add the <code>list_selector.xml</code></p>

<pre><code> &lt;ListView
    android:id="@+id/list"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="#000000"
    android:cacheColorHint="#0A3A5C"
    android:scrollbars="none"
    android:listSelector="@drawable/list_selector"&gt;
</code></pre>

<p>But there is no color appearing when i press one of the items in the listview, any suggestions?</p>

<p><strong>EDIT</strong></p>

<p>The list I try to apply this to, is a custom list. The layout for each of the items in the list: </p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:paddingBottom="10dip"
android:paddingLeft="10dip"
android:paddingTop="10dip" &gt;

&lt;TextView
    android:id="@+id/idNumber"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="First"
    android:textColor="#11629F"
    android:textSize="17sp"
    android:textStyle="bold" /&gt;

&lt;LinearLayout
    android:id="@+id/linearLayout1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" &gt;

&lt;/LinearLayout&gt;

&lt;TextView
    android:id="@+id/date"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignLeft="@+id/idNumber"
    android:layout_below="@+id/idNumber"
    android:text="Second"
    android:textSize="15sp" /&gt;
 &lt;/RelativeLayout&gt;
</code></pre>
