title: setup background color in listview
body: <p>How do I get my whole backgroundpage white?
  I have a listview and tried to set the backgroundcolor white in the xml but
  it didn't worked.
  These are my xmls:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  
  &lt;ListView 
  android:id="@+id/list" android:layout_width="fill_parent" 
  android:clickable="true" android:layout_height="fill_parent"&gt;&lt;/ListView&gt;
  </code></pre>
  
  <p></p>
  
  <p>The only thing that actually gets white is this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/naam" android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:padding="10dp"
  android:textSize="16sp" &gt;
  &lt;/TextView&gt;
  </code></pre>
  
  <p>this is my java code:</p>
  
  <pre><code>public class Contactenlijst extends ListActivity {
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      final HashMap&lt;Integer, Personeel&gt; personeelmap = new HashMap&lt;Integer, Personeel&gt;();
      ArrayList&lt;String&gt; list = new ArrayList&lt;String&gt;();
      // Get the data (see above)
  
      JSONObject json = Database
              .getJSONfromURL("http://fabian.nostradamus.nu/Android/getcontactinfo.php");
  
      try {
          JSONArray contactinfo = json.getJSONArray("contactlijst");
          // Loop the Array
          for (int i = 0; i &lt; contactinfo.length(); i++) {
  
              JSONObject e = contactinfo.getJSONObject(i);
              Personeel p = new Personeel(
                      Integer.parseInt(e.getString("id")),
                      e.getString("staff_name"),
                      e.getString("staff_lastname"),
                      e.getString("staff_dateofbirth"),
                      e.getString("staff_address"),
                      e.getString("staff_address_postal"),
                      e.getString("staff_address_city"),
                      e.getString("staff_mobile"));
              personeelmap.put(Integer.parseInt(e.getString("id")), p);
              list.add(p.toString());
          }
  
      } catch (JSONException e) {
          Log.e("log_tag", "Error parsing data " + e.toString());
      }
  
      setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, list));
      ListView lv = getListView();
      lv.setTextFilterEnabled(true);
  
      // onclick stuur array naar contactinfo
  
      lv.setOnItemClickListener(new OnItemClickListener() {
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                  int position, long id) {
  
              String text = ((TextView) view).getText().toString();
              Intent i = new Intent(Contactenlijst.this, Contactinfo.class);
              String uittekst[] = text.split(" ");
              String vnaam = uittekst[0].toString();
  
              ArrayList&lt;String&gt; al = new ArrayList&lt;String&gt;();
              int a = personeelmap.size();
  
              a = a + 1;
              for (int c = 1; c &lt; a; c++) {
  
                  if (personeelmap.get(c).getStaff_name().toString()
                          .equals(vnaam)) {
                      al.add(personeelmap.get(c).getStaff_name());
                      al.add(personeelmap.get(c).getStaff_lastname());
                      al.add(personeelmap.get(c).getDateofbirth());
                      al.add(personeelmap.get(c).getStaff_address());
                      al.add(personeelmap.get(c).getStaff_address_postal());
                      al.add(personeelmap.get(c).getStaff_address_city());
                      al.add(personeelmap.get(c).getStaff_mobile());
                  }
                  ;
              }
  
              i.putStringArrayListExtra("array", al);
              startActivity(i);
          }
      });
  }
  </code></pre>
  
  <p>}</p>