title: android Listview not showing anything
body: <p>I am working on a first basic android app as a university project and I have an array list of names. I want it to be put into a <code>ListView</code>. The problem I have is nothing appears when I bring in the <code>ListView</code>under the xml document. I don't get the basic template for item1, sub item 1 etc.
  Then when I set up the array to play in the list view still empty list. Below I have the xml document</p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;ListView
          android:layout_width="wrap_content"
          android:layout_height="277dp"
          android:id="@+id/listView" android:layout_alignParentLeft="true"
          android:layout_alignParentTop="true" android:layout_marginTop="7dp"
          android:layout_alignParentBottom="true"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>then here is the java code:</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      populateListView();
  }
  
  private void populateListView() {
      String[] myItems = {"frank","george","alice", "anna"};
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this, R.layout.main, myItems);
      ListView list = (ListView)findViewById(R.id.listView);
      list.setAdapter(adapter);
  }
  </code></pre>