Use a layout_width of 0dip instead of fill_parent for better performance

 在LinearLayout 布局中 如果设置了 android:layout_weight="1" ,则 设置为 android:layout_height="0.0dp"  ,

个人认为:因为比重设置成1了android:layout_height 就不起作用了

猜你喜欢

转载自username2.iteye.com/blog/1953505