I\'m following this tutorial to learn about linear layouts. Here\'s the main layout file:
Specify android:weightSum for the parent layout and also android:layout_height="0dp" for child layouts. Please try this. Hope this would help.