Thanks, ewerybody.
Yes, MEL is not that bad, true... it's just that when it is bad, it's horrid. 
So my tabLayout is not working...
Here's what I am now doing. I initialise a tabLayout with dummy rowColumnLayout in it, making the tabLayout scrollable:
tabLayout -tabsVisible 0 -scrollable 1 -h 200;
rowColumnLayout; //temporary place-holder
setParent ..;
setParent ..;
Later on, I delete the temporary rowColumnLayout and make a new one, ensuring that its parent is the tabLayout.
If I specify the height of the tabLayout when it is initialised, I don't get a scroll bar alongside the new rowColumnLayout (presumably because the contents at the time of specifying the height are just the empty rowColumnLayout, which doesn't require a scroll bar ). If I don't set the height of the tabLayout at initialisation but rather when I after creating the new rowColumnLayout, then the scroll bar is there, but the height is full height (in other words, you can see it all without scrolling instead of just the amount that fits into the specified height), way beyond what I asked for. If I set the height of the tabLayout just before creating the new rowColumnLayout, then I get no scroll bar and the rowColumnLayout is at full height again.
How can I get this to work? Do I need to delete and recreate the tabLayout as well?
Thanks.
PS: ewerybody - can I contact you individually about this?