title: setEmptyView on ListView not showing its view in a android app?
body: <p>I have a problem with the setEmptyView method from a ListView. </p>
  
  <p>Here is my Java code:</p>
  
  <pre><code>ListView view = (ListView)findViewById(R.id.listView1);
  view.setEmptyView(findViewById(R.layout.empty_list_item));
  
  ArrayAdapter&lt;Session&gt; adapter1 = new ArrayAdapter&lt;Session&gt;(this, android.R.layout.simple_list_item_1, 
          android.R.id.text1, MainController.getInstanz().getItems());
  view.setAdapter(adapter1);
  </code></pre>
  
  <p>empty_list_item:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:text="@string/emptyList" &gt;
  
  &lt;/TextView&gt;
  </code></pre>
  
  <p>listview:</p>
  
  <pre><code>&lt;ListView
          android:id="@+id/listView1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content" &gt;
  </code></pre>
  
  <p>What is wrong with my code? 
  When I have items I see them in the list. But when the list is empty I don't see the <code>TextView</code>.</p>