2019独角兽企业重金招聘Python工程师标准>>>
原文:http://blog.csdn.net/chy800/article/details/46397927
结论:按比例显示LinearLayout内各个子控件,需设置android:layout_width="0dp",如果为竖直方向的设置android:layout_height="0dp"。在这种情况下某子个控件占用LinearLayout的比例为:本控件weight值 / LinearLayout内所有控件的weight值的和。