title: Change ListView Item background color but keep the default selector style?
body: <p>I am trying to programmatically set a custom background color in my ListView Adapter but I want to keep the default Listview Selector style from Android.</p>
  
  <p>I am setting the background color using the "SetBacgroundResource" method of my item view.</p>
  
  <p>I am using Android 4.0 and I tried the example from this blog <a href="http://daniel-codes.blogspot.co.nz/2010/07/how-to-change-listview-rows-background.html">http://daniel-codes.blogspot.co.nz/2010/07/how-to-change-listview-rows-background.html</a> but using this example the selector shows however the unselected background color is not showing.</p>
  
  <p>How can I achieve this in Android 4.0 ICS?</p>
  
  <p>EDIT: Here is the Resource I am using for the List Item background drawable.</p>
  
  <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
     &lt;item android:state_window_focused="false" android:state_selected="true" android:drawable="@android:color/transparent" /&gt; 
     &lt;item android:state_selected="true" android:drawable="@android:color/transparent" /&gt; 
     &lt;item android:state_pressed="true" android:state_selected="false" android:drawable="@android:color/transparent" /&gt; 
     &lt;item android:state_selected="false" android:drawable="@color/list_item_first" /&gt; 
  &lt;/selector&gt;
  </code></pre>
  
  <p>The code that I am using to set this background drawable is inside the GetView method of my adatapter. The code is:</p>
  
  <pre><code>convertView.setBackgroundResrouce(R.drawable.list_item_dark);
  </code></pre>