http://blog.csdn.net/hellogv/archive/2009/09/18/4567095.aspxhellogv的一篇文章,可以参考

解决方案 »

  1.   

    确实可以,不过我还有疑问,如果我有6副图片,用320*480的模拟器,一行就是3个,显示2行,但如果我换一种模拟器,比如800*640,那一排就是6个了,也就是都显示在一行里了,我看了下程序,android:columnWidth="90dp",这个貌似把列宽给写死了,如果我想在所有机型上一排都只显示3个,不知有没什么方法?
      

  2.   

    用两个LinearLayout嵌套<LinearLayout>
     //vertical
     >
        <LinearLayout>
           //horizontal
        >
           // 3个imageview
        </LinearLayout>
    </LinearLayout>
      

  3.   

    <?xml version="1.0" encoding="UTF-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <TableLayout android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:stretchColumns="*">
    <TableRow>
    <ImageView android:src="@drawable/icon"></ImageView>
    <ImageView android:src="@drawable/icon"></ImageView>
    <ImageView android:src="@drawable/icon"></ImageView>
    </TableRow>
    </TableLayout>
    </LinearLayout>效果图 :