Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LinearLayout does not fill the scrollview

<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 ?

like image 639
Lukap Avatar asked Mar 09 '12 14:03

Lukap


1 Answers

Try with :

android:fillViewport="true" 

on the scrollView

More information here: LinearLayout not expanding inside a ScrollView

like image 175
Jeremy D Avatar answered Oct 19 '22 07:10

Jeremy D