fill_parent means "always be as big as your parent," which makes no
sense in a ScrollView. What you want is android:fillViewport="true" on
the <ScrollView/> tag.

On Wed, Aug 11, 2010 at 8:52 PM, Moto <[email protected]> wrote:
> I want the view group to extend with the ScrollView if the content of
> the group is smaller than the display area of the ScrollView.
>
> How can I have the ScrollView child extend to fill the parent if it's
> smaller than the parent?
>
> <ScrollView
>        android:layout_width="fill_parent"
>        android:layout_height="fill_parent">
>
>        <LinearLayout
>                android:layout_width="fill_parent"
>                android:layout_height="fill_parent">
>
>                <!-- Some content -->
>        </LinearLayout>
> </ScrollView>
>
> Thanks,
> -Moto
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Romain Guy
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to