Assign your layout a weightSum (like 1, its arbitrary) then divide up the 
children as needed using layout_weight.  The example below draws the two 
children views vertically with each taking up half the parent:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
    android:layout_gravity="fill"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"
    android:weightSum="1.0"
    android:orientation="vertical"
    android:padding="5dp"> 

<TopChildView android:layout_height="0dp"
    android:layout_weight="0.5"
    .../>

<BottomChildView android:layout_height="0dp"
    android:layout_weight="0.5"
    .../>


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