下面是我的佈局XML代碼:如何讓佈局具有相同的高度?
<LinearLayout
android:id="@+id/c"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/a"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical" >
</RelativeLayout>
<RelativeLayout
android:id="@+id/b"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:orientation="vertical" >
</RelativeLayout>
</LinearLayout>
我有2 RelativeLayout的,A和B,在LinearLayout中℃。
a和b可以有不同的高度。
我想使兩個RelativeLayout具有最高的相同高度。
我該如何實現它?
但我想的LinearLayout高度爲2 * MAX(A,B)。 – brian 2013-04-10 07:17:07