Try the following:
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<ListView android:id="@+id/list1"
android:layout_height="0"
android:layout_width="fill_parent"
android:layout_weight="1" />
<ListView android:id="@+id/list2"
android:layout_height="0"
android:layout_width="fill_parent"
android:layout_weight="1" />
</LinearLayout>
You can put any number of lists as long as you determine the height of each of them is 0 and weight 1. Hope this helps. Enjoy!
source
share