Android的五大布局分别是LinearLayout(线性布局)、FrameLayout(单帧布局)、RelativeLayout(相对布局)、AbsoluteLayout(绝对布局)和TableLayout(表格布局),09年的时候,我就该总结!分享才有意义!

LinearLayout(最好少用):
LinearLayout按照垂直或者水平的顺序依次排列子元素,每一个子元素都位于前一个元素之后。如果是垂直排列,那么将是一个N行单列的结构,每一行只会有一个元素,而不论这个元素
的宽度为多少;如果是水平排列,那么将是一个单行N列的结构。如果搭建两行两列的结构,通常的方式是先垂直排列两个元素,每一个元素里再包含一个LinearLayout进行水平排列。
<?xml version="1.0" encoding="utf-8"?>
     android:orientation="vertical" android:layout_width="fill_parent" 
    android:layout_height="fill_parent">
               android:layout_height="wrap_content" android:background="#ff000000" 
           android:text="@string/hello"/>
              android:layout_width="fill_parent" android:layout_height="fill_parent">
                                 android:layout_height="wrap_content" android:background="#ff654321" 
                   android:layout_weight="1" android:text="1"/>