title: Add static header to listFragment in onCreateView
body: <p>How can I add a simple static header to my listview inside a listFragment? I want to create the header from an xml def and add it through inflation.</p>
  
  <p>My onCreateView:</p>
  
  <pre><code>@Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, 
  Bundle savedInstanceState) {
      View detailList = inflater.inflate(R.layout.detail_fragment, container, false);
      View detailListHeader = inflater.inflate(R.layout.daily_sales_header, null, false);
      container.addView(detailListHeader, 0);
      return detailList;
  }
  </code></pre>
  
  <p>This creates the header, but it is not above the listview, rather the listview appears underneath the header, ie the header is overlaying the listview.</p>
  
  <p>Any hints on the correct implementation?</p>