I'm having problems with a layout in wich I have two buttons (working fine) and a listview wrapped by a scrollview.
The problem is that the list is shown but I can only see one element, I can scroll but the rest of the screen is wasted and I want the listview to be displayed as big as it can be.
Here is my layout XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".Enviar" >
<LinearLayout
android:id="@+id/layhoriz"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<Button
android:id="@+id/b_arriba"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Arriba" />
<Button
android:id="@+id/b_salir_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Salir" />
</LinearLayout>
<ScrollView
android:id="@+id/scrollView1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@+id/ListView1"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</ListView>
</ScrollView>