+2  A: 

Try putting your LinearLayout inside a ScrollView...

so your layout xml becomes something like this (psudo-code, but should be enough i think)

<ScrollView
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
>
<LinearLayout 
     android:id="@+id/linear_layout" 
     android:orientation="vertical" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_weight="1" 
     android:background="#ff181818" 
     > 
       <Textview android:id="@+id/my_text" text="header contents goes here" android:layout_width="fill_parent" android:layout_height="wrap_content"/>
      <ListView 
           android:id="@+id/my_list1" 
           android:layout_height="wrap_content" 
           android:layout_width="fill_parent" 
      /> 
 </LinearLayout>

</ScrollView>

ScrollView can only hold one child - so I think your LinearLayout is a good candidate for that...

PHP_Jedi
+1  A: 

The solution I used is to replace ListView with LinearLayout. You can create all your items inside LinearLayout, they will all be displayed. So there's really no need to use ListView.

LinearLayout list = (LinearLayout)findViewById(R.id.list_recycled_parts);
for (int i=0; i<products.size(); i++) {
  Product product = products.get(i);
  View vi = inflater.inflate(R.layout.product_item, null);
  list.addView(vi);
}
Fedor
A: 

Set android:layout_height="fill_parent" in your LinearLayout

waleczny