看看这个http://www.cnblogs.com/tianzhijiexian/p/3855573.html

解决方案 »

  1.   

    如果不改变布局的话,那就只有指定button的android:layout_width的具体数值了。。
      

  2.   

    建议你用GridLayout效果会好一些,http://blog.csdn.net/xdwyyan/article/details/40709653
      

  3.   


    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical" >    <TextView
            android:id="@+id/tv_dis_result"
            android:layout_width="match_parent"
            android:layout_height="39dp"
            android:layout_margin="10dp"
            android:ems="18" >
        </TextView>    <TableLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:stretchColumns="0,1,2" >        <TableRow android:layout_weight="1" >            <Button
                    android:layout_width="1dp"
                    android:layout_height="match_parent" />            <Button
                    android:layout_width="1dp"
                    android:layout_height="match_parent" />            <Button
                    android:layout_width="1dp"
                    android:layout_height="match_parent" />
            </TableRow>        <TableRow android:layout_weight="1" >            <Button
                    android:layout_width="1dp"
                    android:layout_height="match_parent" />            <Button
                    android:layout_width="1dp"
                    android:layout_height="match_parent" />            <Button
                    android:layout_width="1dp"
                    android:layout_height="match_parent" />
            </TableRow>
        </TableLayout></LinearLayout>