Specifies how much of the extra space in the layout to be allocated to the View.
LinearLayout supports assigning a weight to individual children. This attribute assigns an "importance" value to a view, and allows it to expand to fill any "remaining space" in the parent view. Default weight is zero.
注意加粗的词。
具体看这篇博文: