I\'m following this tutorial to learn about linear layouts. Here\'s the main layout file:
layout_weight is normally used with layout_width or layout_height set to wrap_content. Try it, you'll see that it then increases the layout sized based on which view has the higher weight.
Example