title: Android: background listview
body: <p>How can I change the background of a single cell of a ListView?
  I wrote in java:</p>
  
  <pre><code>n_list = new ListView(this);
  n_list.setBackgroundDrawable(getResources().getDrawable(R.drawable.list_pressed));
  </code></pre>
  
  <p>This way changes the background of the whole list. When I press on a cell it changes the background of all cells.</p>
  
  <p><code>list_pressed.xml</code> on drawable</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="@drawable/listviewpress" /&gt;
  
      &lt;item android:state_pressed="true"
            android:drawable="@drawable/listviewpress" /&gt;
      &lt;item 
            android:drawable="@drawable/listview" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>How can I fix this?
  Thanks in advance :)</p>