Hmm, what happens if you set the outer LinearLayout to wrap_content? If that doesn't work on its own, wrap it in another LinearLayout with a greedy (height=0, weight=1) invisible element below it?
I'm getting an error that layout_height="0" is not a valid value, but using wrap_content seems to work perfectly.
If that's the case, you can use a LinearLayout at the outer level and make use of weights:
Is the goal just to have a scrollable area that takes up the entire page minus the amount taken up by some buttons at the bottom?
It still expands and pushes the buttons out of the screen...
Setting the outer Layout with wrap_content worked. If I add the other greedy invisible Layout, the buttons would be stuck in the middle of the screen. But you got it.. thanks !
Sorry, I guess it was not clear... added a sketch...