你把两个子view的“android:layout_width="wrap_content"”改为“android:layout_width="0dp"”试试。

解决方案 »

  1.   

    android:layout_weight="1" 设置这个的时候
    android:layout_width这个最好设置为0
      

  2.   

    你那里需要平分就把那里改成match_parent,如何需要高度平分两个view的android:layout_height改成match_parent
      

  3.   

    看你是均分高度还是宽度,对应的layout_width或者 android:layout_height 要设置成 0dp
      

  4.   

    哦,谢谢两位的回答, 太感谢了, 
    我把两位的都加上后, 发现可以了, ( width="0dp", 和weight都改成0.5 )不明白其中的道理, width="0dp"代表了什么?  weight 是比例, 比例为什么要是0.5  ,( 因为我看dedmo上如果平均分配,则都是1:1:1)
    还请教两位多多指点, 谢谢.