ListFragment Selected Item
<p>i have a ListView on a ListFragment that use SimpleCursorAdapter to generate my list. i wanted to highlight selected item in my ListView, i've tried :</p>

<pre><code>v.setBackgroundResource(R.color.listselect_light_blue);
</code></pre>

<p>in  onListItemClick but it works odd and it selects two row when i click one of items and i want it to be single , i also set Choice Mode</p>

<pre><code>&lt;ListView android:id="@id/android:list"
           android:layout_width="fill_parent"
           android:layout_height="fill_parent" 
           android:choiceMode="singleChoice"   
           android:cacheColorHint="#00000000"
            /&gt;
</code></pre>

<p>i've tried ListSelector but when i click on an item it doesn't highlight until i scroll the list and it turn highlighted.</p>

<pre><code>@Override
public void onActivityCreated(Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);

    getListView().setSelector(R.drawable.listview_selector);

}
</code></pre>

<p>and : </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_focused="false" android:drawable="@color/listselect_light_blue" /&gt;
&lt;/selector&gt;
</code></pre>

<p>any help would be appreciated</p>
