title: Android addHeaderView disappears when no items in ListView
body: <p>I am using <code>addHeaderView</code> to add a view item to the top of a <code>ListView</code>. I also have a <code>TextView</code> to display a message saying there are no items in the list.</p>
  
  <p>Here is the layout:</p>
  
  <pre><code>&lt;ListView android:id="@android:id/list"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"/&gt;          
  
  &lt;TextView
      android:id="@android:id/empty"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:text="@string/list_empty"
      android:gravity="center"
      android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  </code></pre>
  
  <p>And the Java code:</p>
  
  <pre><code>final ListView listView = getListView();
  final View view = getLayoutInflater().inflate(R.layout.list_item_add,
              listView, false);
  listView.addHeaderView(view, null, true);
  </code></pre>
  
  <p>When there are items in the ListView then the header is shown but if I delete all items in the list (except the header view) then the header view disappears.</p>
  
  <p>I would like the header view to be visible in the list view whether there are items in the list or not.</p>
  
  <p>Thanks,</p>