我正在使用以下代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="9"
android:background="@drawable/rectangularborder"
android:orientation="horizontal" >
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="0px"
android:layout_weight="1"
android:background="@drawable/rightrectangularborder"
android:orientation="vertical" >
</LinearLayout>
<!--
<LinearLayout
android:layout_height="fill_parent"
android:layout_width="0px"
android:layout_weight="1"
android:background="@drawable/rightrectangularborder"
android:orientation="vertical" >
</LinearLayout> -->
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
android:background="@drawable/rectangularborder"
android:orientation="vertical" >
</LinearLayout>
</LinearLayout>
在此边框中,ID 为 linearLayout1 的线性布局不会显示。但是,当我在 linearLayout1 中评论线性布局时,边框会正确显示。我怎样才能克服这个问题?