in my layout i have 5 listviews next to each other, and a want them all together to match the screen size so that everyone of them has a width of 1/5 of the screens width. match parent doesnt work because then every listview is as big as the screen.
actually i use this:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/scrollView"
android:layout_marginTop="25dp">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<ListView
android:layout_width="95dp"
android:layout_height="700dp"
android:id="@+id/listView2"
android:layout_gravity="center_horizontal|top"/>
<ListView
android:layout_width="95dp"
android:layout_height="700dp"
android:id="@+id/listView3"
android:layout_gravity="center_horizontal|top"/>
<ListView
android:layout_width="95dp"
android:layout_height="700dp"
android:id="@+id/listView4"
android:layout_gravity="center_horizontal|top"/>
<ListView
android:layout_width="95dp"
android:layout_height="700dp"
android:id="@+id/listView5"
android:layout_gravity="center_horizontal|top"/>
<ListView
android:layout_width="95dp"
android:layout_height="700dp"
android:id="@+id/listView6"
android:layout_gravity="center_horizontal|top"/>
</LinearLayout>
</ScrollView>
but that of course doesnt work for different screen sizes.