android中的很多应用都需要用到这个布局,东南西北中。但是我实在不知道为什么不单独整出来个边框布局~~
这个布局到底怎么实现啊!求助各位

解决方案 »

  1.   

    直接看源码啊,java BorderLayout的源码
      

  2.   

    应该是一样的,你看看呗,eclipse应该自带java源码。
      

  3.   

    找到了。可以实现,贴出布局代码:
    <?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/layout_top"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1" >        <Button
                android:id="@+id/button01"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="Sourth" >
            </Button>
        </LinearLayout>    <LinearLayout
            android:id="@+id/layout_mid"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="10"
            android:orientation="horizontal" >        <Button
                android:id="@+id/button02"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:text="North" >
            </Button>        <Button
                android:id="@+id/button03"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_weight="7"
                android:text="Center" >
            </Button>        <Button
                android:id="@+id/button04"
                android:layout_width="wrap_content"
                android:layout_height="fill_parent"
                android:layout_weight="1"
                android:text="East" >
            </Button>
        </LinearLayout>    <LinearLayout
            android:id="@+id/layout_buttom"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1" >        <Button
                android:id="@+id/button05"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:text="Sourth" >
            </Button>
        </LinearLayout></LinearLayout>