2011-06-30 49 views

Trả lời

14

Bạn có thể đạt được điều này với một cái gì đó như thế: (ví đứng đây)

<LinearLayout 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="0dip" 
    android:weightSum="100"> 
    <LinearLayout 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_weight="60"> 
    </LinearLayout> 
</LinearLayout>` 

Xem android:weightsum documentation

Các vấn đề liên quan