I can't change background of the list item when it is clicked
<p>I want to change the background of a list item when it is clicked, but it isn't working.</p>

<p>This is my MusicAdapter inner class :</p>

<pre><code>class MusicAdapter extends ArrayAdapter&lt;String&gt;{
        Fill fill=null;
        public MusicAdapter(){
            super(GetMusics.this,android.R.layout.simple_list_item_1,song_list);
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
            // TODO Auto-generated method stub

            row = convertView;
            if(row==null){
                LayoutInflater inflater = getLayoutInflater();
                row = inflater.inflate(R.layout.row, null);
                fill=new Fill(row);
                row.setTag(fill);
            }else{
                fill=(Fill)row.getTag();
            }
            row.setBackgroundResource(R.drawable.list_selector);
            fill.setRow(song_list.get(position));
            return row;
        }
    }
</code></pre>

<p>I also tried this, but again it didn't work:</p>

<pre><code>private AdapterView.OnItemClickListener onItemClick = new AdapterView.OnItemClickListener() {

    @Override
    public void onItemClick(AdapterView&lt;?&gt; arg0, View v, int arg2,
            long arg3) {
        // TODO Auto-generated method stub
        lv.getChildAt(arg2).setBackgroundResource(R.drawable.list_selector);
    }
};
</code></pre>

<p>Here is my list_selector.xml:</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="true"
        android:drawable="@color/Peru"/&gt;
    &lt;item android:state_pressed="true"
        android:drawable="@color/Tan"/&gt;
    &lt;item
        android:drawable="@color/Peru"/&gt;
&lt;/selector&gt;
</code></pre>

<p>Do you have any suggestions? </p>
