Android: change color of row of list
<p>I am working in android.</p>

<p>I have a list of place. I want that whenever i click on a place from this list. Then color of that selected row should be changed to BLUE for a short time so it seems to be clicked.</p>

<p>this is the code which i trying:-</p>

<pre><code>   mListView.setOnItemClickListener(new OnItemClickListener()

        {

         @Override

         public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long duration)

          {

             view.setBackgroundResource(R.drawable.fsq_custom_background); 
           }


       }
</code></pre>

<p>This is <strong>fsq_custom_background.xml</strong> which is stored in drawable folder:-</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:state_enabled="true"

    android:drawable="@drawable/the_background_color" /&gt;


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

<p>this is <strong>the_background_color.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"&gt;

&lt;solid android:color="#FF1212" /&gt;

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

<p>but still color of selected row is not changed. please help me what mistake i have done. 
Thank you so much.</p>
