title: Multiple non-scrollable lists in a ScrollView in Android
body: <p>I am trying to put multiple lists that don't need to be scrollable inside a <code>ScrollView</code>. In other words, I have a <code>TextView</code> as a header for a category, with a list under it. Then another <code>TextView</code> as another header, with another list under that. And so on. This is in a vertical <code>LinearLayout</code>.</p>
  
  <p>I want to be able to scroll through this layout as it gets off the screen when it has too much info, but I want all the contents of the lists to be displayed.</p>
  
  <p>I've tried putting the headers (the <code>TextViews</code>) and the lists inside a vertical <code>LinearLayout</code>, and that <code>LinearLayout</code> inside a <code>ScrollView</code>. The problem with that approach is - all the lists have a max vertical dimension of exactly one element (if I set them to "wrap content"), despite the lists having multiple elements. Believe it or not, the lists do scroll (and they're inside of a <code>ScrollView</code>, more exactly, inside of a <code>ScrollView</code> -> <code>LinearLayout</code>).</p>
  
  <p>If I remove the <code>ScrollView</code>, then the lists do indeed appear with all their elements, but I can't scroll the view if it goes off the screen.</p>
  
  <p>So, if I use a <code>ScrollView</code>, I only get one element per each list. If I don't use it, I get all the elements of the lists correctly, but it doesn't scroll.</p>
  
  <p>Any ideas of solving this? Thanks!</p>