Đang học Android, for fun, thì gặp khái niệm mới layout_weight. Đây là giải thích của một bác trên SO. Quả nhiên là người hiểu vấn đề họ giải thích rất dể hiểu.
With layout_weight you can specify a size ratio between multiple views. E.g. you have a MapView and a table which should show some additional information to the map. The map should use 3/4 of the screen and table should use 1/4 of the screen. Then you will set the layout_weight of the map to 3 and the layout_weight of the table to 1.
To get it work you also have to set the height or width (depending on your orientation) to 0px.
Như hình này thì layout_weight như thế nào nhỉ 

Nguồn: http://stackoverflow.com/questions/3995825/what-does-androidlayout-weight-mean

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?