LinearLayout的android:layout_weight的真实含义
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示:
[html]
view plaincopyprint?
LinearLayout
转载
2015-11-25 20:27:11 ·
468 阅读 ·
0 评论