<ScrollView android:layout_width="fill_parent" android:id="@+id/scrollView1"
android:layout_height="fill_parent">
<LinearLayout android:id="@+id/linearLayout1"
android:layout_width="fill_parent" android:orientation="vertical"
android:layout_height="fill_parent">
<ListView android:id="@+id/listView1" android:layout_width="fill_parent"
android:layout_height="fill_parent"></ListView>
</LinearLayout>
</ScrollView>
The scrollview fill the whole screen but the linearLayout1 fill just small part of the screen something near 100dip in height. How can I make the linearLayout1 to fill the parent ?
Try with :
android:fillViewport="true"
on the scrollView
More information here: LinearLayout not expanding inside a ScrollView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With