How to make a true selector for listview item?
<p>I have made a ListView with custom adapter; Now when I click on ListView item this element won't be selected. Therefore I have made a selector and have added it to listview also:</p>

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

list.setSelector(R.layout.custom_item_selector);
</code></pre>

<p>But now all listview will be a green by click. Please, tell me how can I set a green color for a item selected? </p>
