title: Android ScrollView set height for displayed content
body: <p>I'm having a lot of trouble trying solve the issue of having a static height scrollable area within a layout. I have three long lists that need to be displayed on the same screen and it would be entirely impractical to display all of the entries sequentially because then if you want to skip a category you need to scroll past possibly hundreds of entries. </p>
  
  <p>Assume I have a scroll view with a Linear Layout inside of it, I want this to take up say, 250dp height on the screen at max and be independently scrollable once populated with more entries than can fit in 250dp's space.</p>
  
  <p>What I have now is: </p>
  
  <pre><code>&lt;ScrollView
      android:minWidth="25px"
      android:minHeight="150px"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:id="@+id/XXXXXXX"
      android:scrollbars="vertical"&gt;
  
      &lt;LinearLayout
          android:orientation="vertical"
          android:minWidth="25px"
          android:minHeight="25px"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:id="@+id/XXXXXX" /&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>When populated, the scrollview and linearlayout just stretch as long as they needs to to fit the content and displays all of it <em>instead</em> of having a "window" of 250dp/px (any measurment would be nice) with the content scrollable within it.</p>
  
  <p>I'm new to the android platform, so perhaps the answer is obvious and I just didn't understand the language, but any help would be greatly appreciated!
  Thank you</p>
  
  <p>--- SOLVED:
  Put a linearLayout outside of the ScrollView with the height. </p>