title: change color of selected listview item
body: <p>I want to change color of list item when it will press</p>
  
  <p>For that I did like below,</p>
  
  <h2>list_item_selector.xml</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
  
      Selected 
    &lt;item 
      android:state_focused="true" 
      android:state_selected="false" 
      android:drawable="@drawable/list_focused"/&gt; 
  
    Pressed
    &lt;item 
      android:state_selected="true" 
      android:state_focused="false"
      android:drawable="@drawable/list_selected" /&gt;  
  
  &lt;/selector&gt; 
  </code></pre>
  
  <p>I have set the color in colors.xml like below,</p>
  
  <pre><code> &lt;drawable name="list_focused"&gt;#36C170&lt;/drawable&gt;
    &lt;drawable name="list_selected"&gt;#9EC136&lt;/drawable&gt;
  </code></pre>
  
  <p>and in my <code>ListView</code> I wrote like this,</p>
  
  <pre><code>&lt;ListView
              android:id="@+id/list_centers_complete"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" 
              android:cacheColorHint="@android:color/transparent"
              android:listSelector="@drawable/list_item_selector" /&gt;
  </code></pre>
  
  <p>but when I am clicking on list item, the whole background color is changed instead of only list item.</p>
  
  <p>How can I solve this?
  Is there any way?</p>
  
  <p>Thank you</p>