title: Android: Data list scrolling along with other components
body: <p>I'm trying to show a list of data in an android activity. Normally anyone would do that with a simple ListView which I have used many times before. But now I'm having an application with a fixed header and footer, with the middle part (the content) scrolling underneath both the header and the footer. In the middle section I would like to add other components both above and below the list of data, but the <em>entire</em> part must be scrollable. I tried adding components (like a button, textview etc) to a listview but the lay-out builder in Eclipse won't let me do that.</p>
  
  <p>So I started using a ScrollView where you can easily add any component you like. But I am not allowed to add a ListView to a ScrollView, which I can understand as it would create a strange effect (as both are able to scroll).</p>
  
  <p>Next I wanted to use a TableLayout to dynamically add TableRows, but on multiple websites it is said to be slow and 'not the way to do it'. I also couldn't find an elegant way to add the seperator between each item. With a ListView that would all be done very easily.</p>
  
  <p>The following image probably explaines at best the effect I want: <a href="http://tinyurl.com/bvkec5d" rel="nofollow">http://tinyurl.com/bvkec5d</a></p>
  
  <p>The table with the 'Table Data' header can possibly have a lot of items and thus can become very large in length. What I <em>don't want</em> is that the table has a fixed size and the items are scrollable within that table. I actually want the table to grow in size and the ScrollView containing the table should therefore be growing as well. I also want the infobox above the table to scroll along (as with any other components which might be added later).</p>
  
  <p>What is the best way to achieve this effect?</p>