2014-03-19 4 views

답변

2
<LinearLayout 
    ... width=fill_parent, height=fill_parent 
    ... weightSum=5 
    ... orientation=horizontal> 

    <LinearLayout 
    ... width=0dip, height=fill_parent 
    ... weight=4/> 
    <LinearLayout 
    ... width=0dip, height=fill_parent 
    ... weight=1/> 
</LinearLayout> 
0
<LinearLayout 
     android:layout_width="wrap_content" 
     android:layout_height="match_parent" 
     android:weightSum="5" 
     android:orientation="horizontal"> 

    <ImageView 
    android:layout_width="0dp" 
    android:layout_height="wrap_content" 
    android:weight="4"/> 

    <LinearLayout 
     android:layout_width="0dp" 
     android:layout_height="match_parent" 
     android:weight="1" 
     android:orientation="vertical"> 

    <Button 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"/> 

    <ImageView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"/> 

    <ImageView 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content"/> 

    </LinearLayout> 
</LinearLayout> 
관련 문제