title: Small ListViews with header/footer are empty after rotating screen
body: <p>I have a very strange issue with <code>ListView</code> on Android.</p>
  
  <p>When I rotate the device, my <code>ListView</code>s with headers and/or footers become invisible if they are too small.</p>
  
  <p>The items of the <code>ListView</code> are correct. They are restored from <code>savedInstanceState</code> correctly, and a new <code>Adapter</code> is created and bound in activity's <code>onCreate</code>. I even added logging to adapter's <code>getCount</code> and <code>getView</code>, and it showed correct result.</p>
  
  <p>The problem is that the list is invisible only if it's shorter than its height (tried with <code>match_parent</code> and constant height):</p>
  
  <ul>
  <li>If there are no overflowing items at all (for example, 8 items), the list completely disappears when the screen is rotated.</li>
  <li>If there is overflow only in landscape mode with <code>match_parent</code> height (16 items), the list disappears when I go to portrait mode and reappears in landscape mode.</li>
  <li>If there is overflow in both orientations or with constant size (24 items), everything is displayed correctly.</li>
  </ul>
  
  <p>The list is also displayed correctly before I rotate the device.</p>
  
  <p>What's wrong with the list?</p>