title: Best place to addHeaderView in ListFragment
body: <p>I'm having some trouble setting up my custom header in my list.</p>
  
  <p>I'm creating a ListFragment with a custom adapter.  I have the list working fine, but I'm trying to figure out where in the lifecycle of a Fragment to attach the header.</p>
  
  <p>I know the header has to be added before you set your adapter.</p>
  
  <p>I tried adding my header in onActivityCreated, but that gets called every time my Fragment comes back from the backstack, and since I also set my adapter in onActivityCreated, it fails.</p>
  
  <p>I tried adding it in onCreate, but the view hierarchy isn't available at that stage of the lifecycle.</p>
  
  <p>I tried adding it in onCreateView, but I couldn't cast the view returned from inflate to a ListView.  So I couldn't add my header to a vanilla View.</p>
  
  <p>Any thoughts?</p>