Mihai Dumitrache wrote:
> Hello,
> I tried this but it does not work. If i set height 0 to a linearlayout
> the view is not displayed at all.

You also need android:layout_weight="1". Something like this:

<LinearLayout
        android:orientation="vertical"
        android:layout_height="fill_parent"
        android:layout_weight="fill_parent"
>
        <ScrollView
                android:layout_width="fill_parent"
                android:layout_height="0px"
                android:layout_weight="1"
        >
                <!-- contents of scroll go here -->
        </ScrollView>
        <LinearLayout
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
        >
                <!-- "menu buttons" go here -->
        </LinearLayout>
</LinearLayout>

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

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