LinearLayout also supports assigning a weight to individual children with the android:layout_weight attribute. This attribute assigns an “importance” value to a view in terms of how much space it should occupy on the screen. A larger weight value allows it to expand to fill any remaining space in the parent view.
What does Layout_weight mean in Android?
android:layout_weight is an attribute of the Linear Layout layout, which defines the weight of each control occupying the remaining screen space. For example, each control defines its own width by using android:layout_width.
What is Match_parent and Wrap_content in Android?
fill_parent and match_parent are the same, used when we want the height or width of a view to be as big as its parent view, fill_parent being deprecated. wrap_content is used when we want the view to occupy only as much space as required by it. You may also read : Android UI Layouts.