I hope question title gives you a good description of the problem.
I want to create this XML, but programatically (please don\'t suggest not doing it programmatically ^_
I think you forgot to set layout weight (only my opinion though, could be wrong). because you are adding more views with layout-height set to FILL_PARENT