以下示範依比例上下分割為兩個Layout

 

<?xmlversion="1.0"encoding="utf-8"?>

<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="vertical">

     <LinearLayout

         android:layout_width="fill_parent"

         android:layout_height="fill_parent"

         android:layout_weight="7"

         android:orientation="vertical">

     </LinearLayout>

    

     <LinearLayout

         android:layout_width="fill_parent"

         android:layout_height="fill_parent"

         android:layout_weight="1"

         android:orientation="vertical">        

    </LinearLayout>

 

    

  

</LinearLayout>

文章標籤
全站熱搜
創作者介紹
創作者 u2b 的頭像
u2b

jwjwo星象玩玩看

u2b 發表在 痞客邦 留言(0) 人氣(281)