title: Adding background image to listview in Android?
body: <p>I am trying to add a background image to a listActivity in my app. However, with the code that I am using the background image displays on every single row rather than for the whole list.</p>
  
  <p>This is the xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="horizontal"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:padding="8px" &gt;
  
  &lt;ImageView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:src="@drawable/qbg1"/&gt;
  
  &lt;TextView
      android:id="@+id/employeeID"
      android:layout_width="50px"
      android:layout_marginRight="20px"
      android:layout_height="wrap_content"
      android:textColor="@color/textColor"/&gt;
  
  &lt;TextView
      android:id="@+id/employeeName"
      android:layout_width="wrap_content"
      android:layout_marginRight="10px"
      android:layout_height="wrap_content"
      android:layout_toRightOf="@id/employeeID"
      android:textColor="@color/textColor"/&gt;
  
  
  &lt;/RelativeLayout&gt;
  &lt;ImageView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:src="@drawable/qbg1"/&gt;
  </code></pre>
  
  <p>what is the best approach to add a background image to the activity? I would prefer to do in the XML file rather than programmatically.</p>